aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/network_spgist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-09-07 12:03:04 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-09-07 12:03:04 -0400
commit9c79e646c6f0f8df06d966c536d0c6aa33bf1b06 (patch)
tree96209824ad6be794e08afcf840c613a101d92000 /src/backend/utils/adt/network_spgist.c
parent87e6ed7c8c6abb6dd62119259d2fd89169a04ac0 (diff)
downloadpostgresql-9c79e646c6f0f8df06d966c536d0c6aa33bf1b06.tar.gz
postgresql-9c79e646c6f0f8df06d966c536d0c6aa33bf1b06.zip
Frob numeric.c loop so that clang will auto-vectorize it too.
Experimentation shows that clang will auto-vectorize the critical multiplication loop if the termination condition is written "i2 < limit" rather than "i2 <= limit". This seems unbelievably stupid, but I've reproduced it on both clang 9.0.1 (RHEL8) and 11.0.3 (macOS Catalina). gcc doesn't care, so tweak the code to do it that way. Discussion: https://postgr.es/m/CAJ3gD9evtA_vBo+WMYMyT-u=keHX7-r8p2w7OSRfXf42LTwCZQ@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/network_spgist.c')
0 files changed, 0 insertions, 0 deletions