dsharlet / array

C++ multidimensional arrays in the spirit of the STL
Apache License 2.0
198 stars 15 forks source link

clang with -O3 generates significantly worse code than with -O2 #36

Closed dsharlet closed 4 years ago

dsharlet commented 4 years ago

Many of the examples and tests generate significantly worse code with -O3 than -O2. -O3 causes many of the linear algebra examples to fail to generate vector code, when they do with -O2.

dsharlet commented 4 years ago

I don't think this is worth debugging. It fits the pattern I've seen on other code too. -O2 seems to be the way to go on clang.