[llvm] bb03a18 - [SCCP] Regenerate test checks (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 05:55:37 PST 2024


Author: Nikita Popov
Date: 2024-12-05T14:55:29+01:00
New Revision: bb03a184705953c55f141f9731275c421bdc7769

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

LOG: [SCCP] Regenerate test checks (NFC)

The checks generated by old UTC version fail on this test due to
missing signature matching, so regenerate it with a newer one.

Added: 
    

Modified: 
    llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll b/llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll
index aeaaf995efb962..a4e68ead363972 100644
--- a/llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll
+++ b/llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll
@@ -1,12 +1,13 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
 ; RUN: opt -passes=ipsccp -S %s | FileCheck %s
 
 ;Test for PR45185.
 
 define void @spam(ptr %arg) {
-; CHECK-LABEL: @spam(
-; CHECK-NEXT:  bb:
-; CHECK-NEXT:    call void @blam(i32 0, ptr nonnull [[ARG:%.*]])
+; CHECK-LABEL: define void @spam(
+; CHECK-SAME: ptr [[ARG:%.*]]) {
+; CHECK-NEXT:  [[BB:.*:]]
+; CHECK-NEXT:    call void @blam(i32 0, ptr nonnull [[ARG]])
 ; CHECK-NEXT:    [[TMP1:%.*]] = getelementptr inbounds [4 x [24 x float]], ptr [[ARG]], i64 0, i64 1, i64 0
 ; CHECK-NEXT:    call void @blam(i32 1, ptr nonnull [[TMP1]])
 ; CHECK-NEXT:    [[TMP2:%.*]] = getelementptr inbounds [4 x [24 x float]], ptr [[ARG]], i64 0, i64 2, i64 0
@@ -24,18 +25,19 @@ bb:
 
 ; Make sure we do not incorrectly eliminate the checks in @blam.
 define internal void @blam(i32 %arg, ptr nocapture %arg1) {
-; CHECK-LABEL: define {{.*}} @blam(
-; CHECK-NEXT:  bb:
-; CHECK-NEXT:    [[TMP:%.*]] = icmp eq i32 [[ARG:%.*]], 0
-; CHECK-NEXT:    br i1 [[TMP]], label [[BB2:%.*]], label [[BB3:%.*]]
-; CHECK:       bb2:
-; CHECK-NEXT:    br label [[BB5:%.*]]
-; CHECK:       bb3:
+; CHECK-LABEL: define internal void @blam(
+; CHECK-SAME: i32 range(i32 0, 3) [[ARG:%.*]], ptr nocapture [[ARG1:%.*]]) {
+; CHECK-NEXT:  [[BB:.*:]]
+; CHECK-NEXT:    [[TMP:%.*]] = icmp eq i32 [[ARG]], 0
+; CHECK-NEXT:    br i1 [[TMP]], label %[[BB2:.*]], label %[[BB3:.*]]
+; CHECK:       [[BB2]]:
+; CHECK-NEXT:    br label %[[BB5:.*]]
+; CHECK:       [[BB3]]:
 ; CHECK-NEXT:    [[TMP4:%.*]] = icmp eq i32 [[ARG]], 2
-; CHECK-NEXT:    br i1 [[TMP4]], label [[BB5]], label [[BB6:%.*]]
-; CHECK:       bb5:
+; CHECK-NEXT:    br i1 [[TMP4]], label %[[BB5]], label %[[BB6:.*]]
+; CHECK:       [[BB5]]:
 ; CHECK-NEXT:    ret void
-; CHECK:       bb6:
+; CHECK:       [[BB6]]:
 ; CHECK-NEXT:    ret void
 ;
 bb:


        


More information about the llvm-commits mailing list