[llvm] f748fdb - [X86] Fix -enable-machine-outliner for x86-32 after D48683
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 28 17:29:38 PST 2019
Author: Fangrui Song
Date: 2019-12-28T17:26:51-08:00
New Revision: f748fdb05ffc3171441a27e3969154cc31b2f152
URL: https://github.com/llvm/llvm-project/commit/f748fdb05ffc3171441a27e3969154cc31b2f152
DIFF: https://github.com/llvm/llvm-project/commit/f748fdb05ffc3171441a27e3969154cc31b2f152.diff
LOG: [X86] Fix -enable-machine-outliner for x86-32 after D48683
D48683 accidentally disabled -enable-machine-outliner for x86-32.
Added:
Modified:
llvm/lib/Target/X86/X86TargetMachine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 21f1ef9cb06e..599238d1972b 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -230,9 +230,7 @@ X86TargetMachine::X86TargetMachine(const Target &T, const Triple &TT,
this->Options.NoTrapAfterNoreturn = TT.isOSBinFormatMachO();
}
- // Outlining is available for x86-64.
- if (TT.getArch() == Triple::x86_64)
- setMachineOutliner(true);
+ setMachineOutliner(true);
initAsmInfo();
}
More information about the llvm-commits
mailing list