File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
llvm/test/Transforms/Mem2Reg Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
- ; RUN: opt < %s -passes=mem2reg -S | not grep phi
1
+ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2
+ ; RUN: opt < %s -passes=mem2reg -S | FileCheck %s
2
3
3
4
define i32 @testfunc (i1 %C , i32 %i , i8 %j ) {
4
- %I = alloca i32 ; <ptr> [#uses=2]
5
- br i1 %C , label %T , label %Cont
6
- T: ; preds = %0
7
- store i32 %i , ptr %I
8
- br label %Cont
9
- Cont: ; preds = %T, %0
10
- %Y = load i32 , ptr %I ; <i32> [#uses=1]
11
- ret i32 %Y
5
+ ; CHECK-LABEL: define i32 @testfunc(
6
+ ; CHECK-SAME: i1 [[C:%.*]], i32 [[I:%.*]], i8 [[J:%.*]]) {
7
+ ; CHECK-NEXT: br i1 [[C]], label %[[T:.*]], label %[[CONT:.*]]
8
+ ; CHECK: [[T]]:
9
+ ; CHECK-NEXT: br label %[[CONT]]
10
+ ; CHECK: [[CONT]]:
11
+ ; CHECK-NEXT: ret i32 [[I]]
12
+ ;
13
+ %I = alloca i32
14
+ br i1 %C , label %T , label %Cont
15
+ T:
16
+ store i32 %i , ptr %I
17
+ br label %Cont
18
+ Cont:
19
+ %Y = load i32 , ptr %I
20
+ ret i32 %Y
12
21
}
13
22
You can’t perform that action at this time.
0 commit comments