[llvm] r242268 - Tidy-up test case from r242257.

Michael Zolotukhin mzolotukhin at apple.com
Tue Jul 14 18:51:51 PDT 2015


Author: mzolotukhin
Date: Tue Jul 14 20:51:51 2015
New Revision: 242268

URL: http://llvm.org/viewvc/llvm-project?rev=242268&view=rev
Log:
Tidy-up test case from r242257.

Modified:
    llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics-cast.ll

Modified: llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics-cast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics-cast.ll?rev=242268&r1=242267&r2=242268&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics-cast.ll (original)
+++ llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics-cast.ll Tue Jul 14 20:51:51 2015
@@ -3,8 +3,8 @@ target datalayout = "e-m:o-i64:64-f80:12
 
 @known_constant = internal unnamed_addr constant [10 x i32] [i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1], align 16
 
-; We should be able to propagate constant data thru different types of casts.
-; For example, in this test we have a load, which becomes constant after
+; We should be able to propagate constant data through different types of
+; casts. For example, in this test we have a load, which becomes constant after
 ; unrolling, which then is truncated to i8. Obviously, truncated value is also a
 ; constant, which can be used in the further simplifications.
 ;
@@ -14,7 +14,8 @@ target datalayout = "e-m:o-i64:64-f80:12
 ; optimize  ~60% of all instructions in this case.
 ;
 ; CHECK-LABEL: @const_load_trunc
-; CHECK-NOT: br i1 %exitcond86.i, label %loop.end, label %loop
+; CHECK-NOT: br i1
+; CHECK: ret i8 %
 define i8 @const_load_trunc(i32* noalias nocapture readonly %src) {
 entry:
   br label %loop
@@ -41,7 +42,8 @@ loop.end:
 
 ; The same test as before, but with ZEXT instead of TRUNC.
 ; CHECK-LABEL: @const_load_zext
-; CHECK-NOT: br i1 %exitcond86.i, label %loop.end, label %loop
+; CHECK-NOT: br i1
+; CHECK: ret i64 %
 define i64 @const_load_zext(i32* noalias nocapture readonly %src) {
 entry:
   br label %loop
@@ -68,7 +70,8 @@ loop.end:
 
 ; The same test as the first one, but with SEXT instead of TRUNC.
 ; CHECK-LABEL: @const_load_sext
-; CHECK-NOT: br i1 %exitcond86.i, label %loop.end, label %loop
+; CHECK-NOT: br i1
+; CHECK: ret i64 %
 define i64 @const_load_sext(i32* noalias nocapture readonly %src) {
 entry:
   br label %loop





More information about the llvm-commits mailing list