[LLVMdev] [PATCH] Detect Haswell subarchitecture (i.e. using -march=native)

Tim Northover t.p.northover at gmail.com
Thu Sep 12 09:02:58 PDT 2013

Hi Adam,

> * I have marked HasAVX2 as "volatile", since otherwise it gets
> magically zeroed (by optimizer?) when compiling clang with latest
> clang build from trunk

That's far more worrying to me than not being able to detect Haswell.
I can't reproduce the problem here at the moment: both debug and
release builds give identical assembly for Host.cpp.

I don't suppose you could post the command-line clang is using to
build Host.cpp (and perhaps the differing object files if you have
them handy)?



More information about the llvm-dev mailing list