Enable SSEDomainFix pass for AVX mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bruno Cardoso Lopes 2011-09-15 18:27:32 +00:00
parent d205f7a940
commit 41a9635292

View File

@ -130,16 +130,19 @@ bool X86TargetMachine::addPostRegAlloc(PassManagerBase &PM,
bool X86TargetMachine::addPreEmitPass(PassManagerBase &PM,
CodeGenOpt::Level OptLevel) {
if (OptLevel != CodeGenOpt::None && Subtarget.hasSSE2()) {
bool ShouldPrint = false;
if (OptLevel != CodeGenOpt::None &&
(Subtarget.hasSSE2() || Subtarget.hasAVX())) {
PM.add(createSSEDomainFixPass());
return true;
ShouldPrint = true;
}
if (Subtarget.hasAVX() && UseVZeroUpper) {
PM.add(createX86IssueVZeroUpperPass());
return true;
ShouldPrint = true;
}
return false;
return ShouldPrint;
}
bool X86TargetMachine::addCodeEmitter(PassManagerBase &PM,