diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-04-26 21:44:24 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-04-26 21:44:24 +0000 |
commit | 2bee5ef462d1ffefeb17c150b2e43e15a39e4cf5 (patch) | |
tree | a20bae80d996a52dadef8222a982b18c9d32934e /llvm/lib/Target/X86/X86PadShortFunction.cpp | |
parent | 128f8732a5c4c318ae8e789754857aea278be8a6 (diff) | |
download | llvm-2bee5ef462d1ffefeb17c150b2e43e15a39e4cf5.zip llvm-2bee5ef462d1ffefeb17c150b2e43e15a39e4cf5.tar.gz llvm-2bee5ef462d1ffefeb17c150b2e43e15a39e4cf5.tar.bz2 |
Optimization bisect support in X86-specific passes
Differential Revision: http://reviews.llvm.org/D19439
llvm-svn: 267608
Diffstat (limited to 'llvm/lib/Target/X86/X86PadShortFunction.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86PadShortFunction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86PadShortFunction.cpp b/llvm/lib/Target/X86/X86PadShortFunction.cpp index 96e8b9b..1806848 100644 --- a/llvm/lib/Target/X86/X86PadShortFunction.cpp +++ b/llvm/lib/Target/X86/X86PadShortFunction.cpp @@ -98,6 +98,9 @@ FunctionPass *llvm::createX86PadShortFunctions() { /// runOnMachineFunction - Loop over all of the basic blocks, inserting /// NOOP instructions before early exits. bool PadShortFunc::runOnMachineFunction(MachineFunction &MF) { + if (skipFunction(*MF.getFunction())) + return false; + if (MF.getFunction()->optForSize()) { return false; } |