[LLVMdev] use AVX automatically if present

Henning Thielemann llvm at henning-thielemann.de
Thu May 24 15:47:42 PDT 2012


On Thu, 24 May 2012, Hal Finkel wrote:

> Henning,
>
> I believe the code that is supposed to do this is in:
> lib/Target/X86/X86Subtarget.cpp in
> X86Subtarget::AutoDetectSubtargetFeatures()
> Is there a bug in that function?

I read there:

   // FIXME: AVX codegen support is not ready.
   //if ((ECX >> 28) & 1) { X86SSELevel = AVX;  ToggleFeature(X86::FeatureAVX); }


It looks like the check for AVX is disabled intentionally.
But if the AVX codegen is now usable, one could enable the AVX check, 
right?



More information about the llvm-dev mailing list