[PATCH] Improved AVX discovery for X86Subtarget

Aaron Ballman aaron at aaronballman.com
Thu May 2 13:37:35 PDT 2013


It was pointed out in a comment on PR15351 that X86Subtarget had an
incorrect AVX support test.  This patch addresses that problem.

Another approach that I could take for this patch would be to expose
the OSHasAVXSupport function from Host.cpp (in Support) and reuse the
code in X86Subtarget instead of having a copy of the function.  I was
uncertain whether it was reasonable to expose the function from Host
though since it's processor-specific.

Thanks!

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X86Subtarget.cpp.patch
Type: application/octet-stream
Size: 1657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130502/989d5a1f/attachment.obj>


More information about the llvm-commits mailing list