Hi LLVMers,<div><br></div><div>The AVX detection code in X86Subtarget::AutoDetectSubtargetFeatures() only checked for the CPUID.{EAX = 1}.ECX.AVX bit previously. This is not enough; the XSAVE and OSXSAVE bits also need to be checked to be sure that the OS is aware of XMM/YMM registers and saves them during context switches. This patch fixes that.</div>
<div><br></div><div>The patch was created with git diff - I was told svn should be able to work with that.</div><div><br></div><div>This is my first patch submission, so if I did something wrong, please bear with me. :)</div>
<div><br></div><div>Regards,</div><div>Alex</div>