diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-04-20 00:38:45 +0000 | 
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-04-20 00:38:45 +0000 | 
| commit | 205ee3b389812e19232f73b46677d132da18017f (patch) | |
| tree | 64fe99cc87b8549eeac5999e91adb56c997e9e95 /llvm/test/Transforms/InstCombine/cast.ll | |
| parent | 9c74e4310c894a6083e8fe1d95a4d38526397fbb (diff) | |
| download | bcm5719-llvm-205ee3b389812e19232f73b46677d132da18017f.tar.gz bcm5719-llvm-205ee3b389812e19232f73b46677d132da18017f.zip  | |
Revert r155136 "Defer some shl transforms to DAGCombine."
While the patch was perfect and defect free, it exposed a really nasty
bug in X86 SelectionDAG that caused an llc crash when compiling lencod.
I'll put the patch back in after fixing the SelectionDAG problem.
llvm-svn: 155181
Diffstat (limited to 'llvm/test/Transforms/InstCombine/cast.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/cast.ll | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/test/Transforms/InstCombine/cast.ll b/llvm/test/Transforms/InstCombine/cast.ll index 7cf63e8ce1f..19d5a0ae772 100644 --- a/llvm/test/Transforms/InstCombine/cast.ll +++ b/llvm/test/Transforms/InstCombine/cast.ll @@ -457,12 +457,10 @@ define i64 @test50(i64 %A) {    %E = sext i32 %D to i64    ret i64 %E  ; CHECK: @test50 -; lshr+shl will be handled by DAGCombine. -; CHECK-NEXT: lshr i64 %A, 2 -; CHECK-NEXT: shl i64 %a, 32 +; CHECK-NEXT: shl i64 %A, 30  ; CHECK-NEXT: add i64 {{.*}}, -4294967296 -; CHECK-NEXT: %E = ashr exact i64 {{.*}}, 32 -; CHECK-NEXT: ret i64 %E +; CHECK-NEXT: %sext = ashr i64 {{.*}}, 32 +; CHECK-NEXT: ret i64 %sext  }  define i64 @test51(i64 %A, i1 %cond) {  | 

