On 2013-04-23 00:17:28 -0700, Jeff Davis wrote: > + # important optimization flags for checksum.c > + ifeq ($(GCC),yes) > + checksum.o: CFLAGS += -msse4.1 -funroll-loops -ftree-vectorize > + endif
I am pretty sure we can't do those unconditionally: - -funroll-loops and -ftree-vectorize weren't always part of gcc afair, so we would need a configure check for those - SSE4.1 looks like a total no-go, its not available everywhere. We *can* add runtime detection of that with gcc fairly easily and one-time if we wan't to go there (later?) using 'ifunc's, but that needs a fair amount of infrastructure work. - We can rely on SSE1/2 on amd64, but I think thats automatically enabled there. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers