Re-enable extension optimization pass.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 13 Jan 2010 08:45:40 +0000 (08:45 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 13 Jan 2010 08:45:40 +0000 (08:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93313 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LLVMTargetMachine.cpp
test/CodeGen/X86/sext-subreg.ll
test/CodeGen/X86/stack-color-with-reg.ll

index 4ab6a9443416bc9d3c6008e44e82a03f0df92b2f..733995f82be8dd4cd070c2b9d68c326c1cba6c9e 100644 (file)
@@ -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)
index 06964cefc7152d32c36bd100a06f8bfbac97fbe3..b2b9f8121fd6f0dd28412b74c580f0712ba49354 100644 (file)
@@ -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:
index d7623920ff28cfa1e4092f934d02d37ec3f8cddd..be9f3af308a5f51d2d0c7db977b5e81410cdcc43 100644 (file)
@@ -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