mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-15 16:28:48 +00:00
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:
parent
d205f7a940
commit
41a9635292
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user