Revert 89021. It's miscompiling llvm-gcc driver driver at -O0.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 17 Nov 2009 09:55:52 +0000 (09:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 17 Nov 2009 09:55:52 +0000 (09:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89082 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PHIElimination.cpp
test/CodeGen/X86/2008-04-15-LiveVariableBug.ll
test/CodeGen/X86/stack-color-with-reg.ll

index 9adc56234a0cbacbf0316c276d56da3a81b5f584..c4f2cc7a75d382c0ae089b21da07245ab5913ba1 100644 (file)
@@ -39,7 +39,7 @@ STATISTIC(NumSplits, "Number of critical edges split on demand");
 static cl::opt<bool>
 SplitEdges("split-phi-edges",
            cl::desc("Split critical edges during phi elimination"),
-           cl::init(true), cl::Hidden);
+           cl::init(false), cl::Hidden);
 
 char PHIElimination::ID = 0;
 static RegisterPass<PHIElimination>
index 664a69f264964d47c39b6227ced3a6dd39189721..83eb61aed433cd2fd08ac8729aa270c05ed85b39 100644 (file)
@@ -1,9 +1,5 @@
 ; RUN: llc < %s -mtriple=x86_64-apple-darwin
-
-; Globally enabling -split-phi-edges causes LiveVariables to always run.
-; LiveVariables trips up the local allocator on this test.
-; It doesn't understand the subtleties of subregister imp-kills.
-; DONT: llc < %s -mtriple=x86_64-apple-darwin -relocation-model=pic -disable-fp-elim -O0 -regalloc=local
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -relocation-model=pic -disable-fp-elim -O0 -regalloc=local
 
        %struct.CGPoint = type { double, double }
        %struct.NSArray = type { %struct.NSObject }
index 95b5a777753cfc34d383ce0144dfcc458af1f211..0f32a50fc5b390266fc6e6c3466e053a1047b47c 100644 (file)
@@ -1,8 +1,6 @@
 ; 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
-
-; Obviously the only correct way of translating this function is with 175 instructions. Not 177 (duh!)
-; RUN:   grep asm-printer %t   | grep 175
+; RUN:   grep asm-printer %t   | grep 177
 
        type { [62 x %struct.Bitvec*] }         ; type %0
        type { i8* }            ; type %1