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

Evgeniy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 03:00:01 PST 2020


ebrevnov created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
ebrevnov requested review of this revision.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92561

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


Index: llvm/test/Transforms/NaryReassociate/pr24301.ll
===================================================================
--- llvm/test/Transforms/NaryReassociate/pr24301.ll
+++ 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 @@
   %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
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92561.309203.patch
Type: text/x-patch
Size: 1076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201203/87b447b4/attachment.bin>


More information about the llvm-commits mailing list