diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-01-13 08:45:40 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-01-13 08:45:40 +0000 |
commit | 074e5ee642f72bfa5fa53aaebbfa286f76d93156 (patch) | |
tree | 32c6e3c7d98cc12e5361178514d9c84c15e4377e | |
parent | 52f39f00b758593f7c4c0b9f0f831b3e7fbd0d9e (diff) | |
download | external_llvm-074e5ee642f72bfa5fa53aaebbfa286f76d93156.zip external_llvm-074e5ee642f72bfa5fa53aaebbfa286f76d93156.tar.gz external_llvm-074e5ee642f72bfa5fa53aaebbfa286f76d93156.tar.bz2 |
Re-enable extension optimization pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93313 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 1 | ||||
-rw-r--r-- | test/CodeGen/X86/sext-subreg.ll | 1 | ||||
-rw-r--r-- | test/CodeGen/X86/stack-color-with-reg.ll | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 4ab6a94..733995f 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -325,6 +325,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, /* allowDoubleDefs= */ true); if (OptLevel != CodeGenOpt::None) { + PM.add(createOptimizeExtsPass()); if (!DisableMachineLICM) PM.add(createMachineLICMPass()); if (!DisableMachineSink) diff --git a/test/CodeGen/X86/sext-subreg.ll b/test/CodeGen/X86/sext-subreg.ll index 06964ce..b2b9f81 100644 --- a/test/CodeGen/X86/sext-subreg.ll +++ b/test/CodeGen/X86/sext-subreg.ll @@ -1,6 +1,5 @@ ; RUN: llc < %s -march=x86-64 | FileCheck %s ; rdar://7529457 -; XFAIL: * define i64 @t(i64 %A, i64 %B, i32* %P, i64 *%P2) nounwind { ; CHECK: t: diff --git a/test/CodeGen/X86/stack-color-with-reg.ll b/test/CodeGen/X86/stack-color-with-reg.ll index d762392..be9f3af 100644 --- a/test/CodeGen/X86/stack-color-with-reg.ll +++ b/test/CodeGen/X86/stack-color-with-reg.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -relocation-model=pic -disable-fp-elim -color-ss-with-regs -stats -info-output-file - > %t -; RUN: grep stackcoloring %t | grep "stack slot refs replaced with reg refs" | grep 6 +; RUN: grep stackcoloring %t | grep "stack slot refs replaced with reg refs" | grep 9 type { [62 x %struct.Bitvec*] } ; type %0 type { i8* } ; type %1 |