I’m incredibly happy with using
clang-cl with Microsoft Visual Studio! It is really awesome work!
Now we have a use case where I’m not sure if this is covered? We need to target a sandybridge CPU for our software, but it gives poor performance on more modern CPUs with AVX2, so I’d like to use the equivalent of
-mtune. But I need it for
clang-cl as a frontend of Microsoft Visual Studio.
Is that possible, does clang or clang-cl support tuning for a second CPU on top of
I found ⚙ D86820 [X86] Add a /tune: option for clang-cl and it mentions
/tune:haswell. I tested it and clang-cl happily accepts the option without build error. But I’m not sure if my code is now any different, at least binary size did almost not change…