diff options
Diffstat (limited to 'test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll')
-rw-r--r-- | test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll b/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll index a75a4656e68a..c8f0351858ca 100644 --- a/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll +++ b/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll @@ -15,7 +15,7 @@ define void @fu1(i32 %parm) nounwind ssp { ; <label>:4 ; preds = %0 %5 = load i32* %1, align 4 - %6 = mul nsw i32 %5, 8 + %6 = shl nsw i32 %5, 3 ; With "nsw", the alloca and its bitcast can be fused: %7 = add nsw i32 %6, 2048 ; CHECK: alloca double @@ -50,7 +50,8 @@ define void @fu2(i32 %parm) nounwind ssp { %7 = add i32 %6, 2048 ; CHECK: alloca i8 %8 = alloca i8, i32 %7 -; CHECK-NEXT: bitcast i8* +; CHECK-NEXT: bitcast double** +; CHECK-NEXT: store i8* %9 = bitcast i8* %8 to double* store double* %9, double** %ptr, align 4 br label %10 |