[llvm-branch-commits] [llvm] 485cd4c - [NFC][Tests] Auto generate checks for llvm/test/Transforms/NaryReassociate/pr24301.ll using update_test_checks.py

Evgeniy Brevnov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 3 03:27:10 PST 2020


Author: Evgeniy Brevnov
Date: 2020-12-03T18:22:14+07:00
New Revision: 485cd4c52ed7662f844703fff273995b3b156327

URL: https://github.com/llvm/llvm-project/commit/485cd4c52ed7662f844703fff273995b3b156327
DIFF: https://github.com/llvm/llvm-project/commit/485cd4c52ed7662f844703fff273995b3b156327.diff

LOG: [NFC][Tests] Auto generate checks for llvm/test/Transforms/NaryReassociate/pr24301.ll using update_test_checks.py

Generate checks with update_test_checks.py in order to simplify upcoming updates.

Reviewed By: mkazantsev

Differential Revision: https://reviews.llvm.org/D92561

Added: 
    

Modified: 
    llvm/test/Transforms/NaryReassociate/pr24301.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/NaryReassociate/pr24301.ll b/llvm/test/Transforms/NaryReassociate/pr24301.ll
index 49a4d2863e13..2bcbc937d18f 100644
--- a/llvm/test/Transforms/NaryReassociate/pr24301.ll
+++ b/llvm/test/Transforms/NaryReassociate/pr24301.ll
@@ -1,8 +1,16 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; RUN: opt < %s -nary-reassociate -S | FileCheck %s
 ; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
 
 define i32 @foo(i32 %tmp4) {
 ; CHECK-LABEL: @foo(
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    [[TMP5:%.*]] = add i32 [[TMP4:%.*]], 8
+; CHECK-NEXT:    [[TMP14:%.*]] = add i32 [[TMP5]], -128
+; CHECK-NEXT:    [[TMP21:%.*]] = add i32 119, [[TMP4]]
+; CHECK-NEXT:    [[TMP23:%.*]] = add i32 [[TMP21]], -128
+; CHECK-NEXT:    ret i32 [[TMP23]]
+;
 entry:
   %tmp5 = add i32 %tmp4, 8
   %tmp13 = add i32 %tmp4, -128  ; deleted
@@ -10,6 +18,5 @@ entry:
   %tmp21 = add i32 119, %tmp4
   ; do not rewrite %tmp23 against %tmp13 because %tmp13 is already deleted
   %tmp23 = add i32 %tmp21, -128
-; CHECK: %tmp23 = add i32 %tmp21, -128
   ret i32 %tmp23
 }


        


More information about the llvm-branch-commits mailing list