[LLVMdev] use AVX automatically if present

Hal Finkel hfinkel at anl.gov
Thu May 24 15:56:40 PDT 2012


Henning,

Are you looking at trunk? I believe that in trunk this has been
uncommented.

 -Hal

On Fri, 25 May 2012 00:47:42 +0200 (CEST)
Henning Thielemann <llvm at henning-thielemann.de> wrote:

> 
> 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?



-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-dev mailing list