summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index f9d2d0a3004..445adbd4349 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -304,10 +304,10 @@ bool X86PassConfig::addPreISel() {
}
void X86PassConfig::addPreRegAlloc() {
- addPass(createX86FixupSetCC());
-
- if (getOptLevel() != CodeGenOpt::None)
- addPass(createX86OptimizeLEAs());
+ if (getOptLevel() != CodeGenOpt::None) {
+ addPass(createX86FixupSetCC());
+ addPass(createX86OptimizeLEAs());
+ }
addPass(createX86CallFrameOptimization());
addPass(createX86WinAllocaExpander());
OpenPOWER on IntegriCloud