[llvm] f43ef53 - [Mem2Reg] Regenerate test checks (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 03:27:22 PST 2024


Author: Nikita Popov
Date: 2024-11-07T12:26:52+01:00
New Revision: f43ef53dd20b83ea0db6fdba69025c9a76a1de08

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

LOG: [Mem2Reg] Regenerate test checks (NFC)

Switch to FileCheck and use UTC.

Added: 
    

Modified: 
    llvm/test/Transforms/Mem2Reg/UndefValuesMerge.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/Mem2Reg/UndefValuesMerge.ll b/llvm/test/Transforms/Mem2Reg/UndefValuesMerge.ll
index 1a72531fac1c53..4be4680b4e019a 100644
--- a/llvm/test/Transforms/Mem2Reg/UndefValuesMerge.ll
+++ b/llvm/test/Transforms/Mem2Reg/UndefValuesMerge.ll
@@ -1,13 +1,22 @@
-; RUN: opt < %s -passes=mem2reg -S | not grep phi
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt < %s -passes=mem2reg -S | FileCheck %s
 
 define i32 @testfunc(i1 %C, i32 %i, i8 %j) {
-	%I = alloca i32		; <ptr> [#uses=2]
-	br i1 %C, label %T, label %Cont
-T:		; preds = %0
-	store i32 %i, ptr %I
-	br label %Cont
-Cont:		; preds = %T, %0
-	%Y = load i32, ptr %I		; <i32> [#uses=1]
-	ret i32 %Y
+; CHECK-LABEL: define i32 @testfunc(
+; CHECK-SAME: i1 [[C:%.*]], i32 [[I:%.*]], i8 [[J:%.*]]) {
+; CHECK-NEXT:    br i1 [[C]], label %[[T:.*]], label %[[CONT:.*]]
+; CHECK:       [[T]]:
+; CHECK-NEXT:    br label %[[CONT]]
+; CHECK:       [[CONT]]:
+; CHECK-NEXT:    ret i32 [[I]]
+;
+  %I = alloca i32
+  br i1 %C, label %T, label %Cont
+T:
+  store i32 %i, ptr %I
+  br label %Cont
+Cont:
+  %Y = load i32, ptr %I
+  ret i32 %Y
 }
 


        


More information about the llvm-commits mailing list