[llvm] 071109c - [Reg2Mem] Convert test to opaque pointers (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 4 07:43:01 PST 2023
Author: Nikita Popov
Date: 2023-01-04T16:42:45+01:00
New Revision: 071109c9f2bed9bcc4e4f8443bcd2268eaa3ae1e
URL: https://github.com/llvm/llvm-project/commit/071109c9f2bed9bcc4e4f8443bcd2268eaa3ae1e
DIFF: https://github.com/llvm/llvm-project/commit/071109c9f2bed9bcc4e4f8443bcd2268eaa3ae1e.diff
LOG: [Reg2Mem] Convert test to opaque pointers (NFC)
Added:
Modified:
llvm/test/Transforms/Reg2Mem/catchswitch-crash2.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/Reg2Mem/catchswitch-crash2.ll b/llvm/test/Transforms/Reg2Mem/catchswitch-crash2.ll
index 799e263e97be..d8a1f341e776 100644
--- a/llvm/test/Transforms/Reg2Mem/catchswitch-crash2.ll
+++ b/llvm/test/Transforms/Reg2Mem/catchswitch-crash2.ll
@@ -4,17 +4,17 @@
declare i32 @__CxxFrameHandler3(...)
-define void @testreg2mem(i8* %_Val) personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) {
+define void @testreg2mem(ptr %_Val) personality ptr @__CxxFrameHandler3 {
; CHECK-LABEL: @testreg2mem(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[_STATE_3_REG2MEM:%.*]] = alloca i32, align 4
; CHECK-NEXT: [[_STATE_3_REG2MEM1:%.*]] = alloca i32, align 4
; CHECK-NEXT: %"reg2mem alloca point" = bitcast i32 0 to i32
-; CHECK-NEXT: store i32 0, i32* [[_STATE_3_REG2MEM1]], align 4
+; CHECK-NEXT: store i32 0, ptr [[_STATE_3_REG2MEM1]], align 4
; CHECK-NEXT: [[CALL_I166167:%.*]] = invoke noundef i64 @extfunc_i64()
; CHECK-NEXT: to label [[IF_END56:%.*]] unwind label [[CATCH_DISPATCH:%.*]]
; CHECK: if.end56:
-; CHECK-NEXT: store i32 1, i32* [[_STATE_3_REG2MEM1]], align 4
+; CHECK-NEXT: store i32 1, ptr [[_STATE_3_REG2MEM1]], align 4
; CHECK-NEXT: invoke void @extfunc()
; CHECK-NEXT: to label [[INVOKE_CONT75:%.*]] unwind label [[CATCH_DISPATCH]]
; CHECK: invoke.cont75:
@@ -22,21 +22,21 @@ define void @testreg2mem(i8* %_Val) personality i8* bitcast (i32 (...)* @__CxxFr
; CHECK: catch.dispatch:
; CHECK-NEXT: [[TMP0:%.*]] = catchswitch within none [label %catch] unwind label [[EHCLEANUP105:%.*]]
; CHECK: catch:
-; CHECK-NEXT: [[TMP1:%.*]] = catchpad within [[TMP0]] [i8* null, i32 64, i8* null]
-; CHECK-NEXT: [[_STATE_3_RELOAD2:%.*]] = load i32, i32* [[_STATE_3_REG2MEM1]], align 4
-; CHECK-NEXT: store i32 [[_STATE_3_RELOAD2]], i32* [[_STATE_3_REG2MEM]], align 4
+; CHECK-NEXT: [[TMP1:%.*]] = catchpad within [[TMP0]] [ptr null, i32 64, ptr null]
+; CHECK-NEXT: [[_STATE_3_RELOAD2:%.*]] = load i32, ptr [[_STATE_3_REG2MEM1]], align 4
+; CHECK-NEXT: store i32 [[_STATE_3_RELOAD2]], ptr [[_STATE_3_REG2MEM]], align 4
; CHECK-NEXT: invoke void @extfunc() [ "funclet"(token [[TMP1]]) ]
; CHECK-NEXT: to label [[INVOKE_CONT98:%.*]] unwind label [[EHCLEANUP105]]
; CHECK: invoke.cont98:
; CHECK-NEXT: catchret from [[TMP1]] to label [[IF_END99:%.*]]
; CHECK: if.end99:
-; CHECK-NEXT: [[_STATE_3_RELOAD:%.*]] = load i32, i32* [[_STATE_3_REG2MEM]], align 4
+; CHECK-NEXT: [[_STATE_3_RELOAD:%.*]] = load i32, ptr [[_STATE_3_REG2MEM]], align 4
; CHECK-NEXT: [[OR_I:%.*]] = or i32 0, [[_STATE_3_RELOAD]]
; CHECK-NEXT: unreachable
; CHECK: ehcleanup105:
; CHECK-NEXT: [[TMP2:%.*]] = cleanuppad within none []
-; CHECK-NEXT: [[_STATE_3_RELOAD3:%.*]] = load i32, i32* [[_STATE_3_REG2MEM1]], align 4
-; CHECK-NEXT: store i32 [[_STATE_3_RELOAD3]], i32* [[_STATE_3_REG2MEM]], align 4
+; CHECK-NEXT: [[_STATE_3_RELOAD3:%.*]] = load i32, ptr [[_STATE_3_REG2MEM1]], align 4
+; CHECK-NEXT: store i32 [[_STATE_3_RELOAD3]], ptr [[_STATE_3_REG2MEM]], align 4
; CHECK-NEXT: cleanupret from [[TMP2]] unwind to caller
;
entry:
@@ -55,7 +55,7 @@ catch.dispatch: ; preds = %if.end56, %entry
%0 = catchswitch within none [label %catch] unwind label %ehcleanup105
catch: ; preds = %catch.dispatch
- %1 = catchpad within %0 [i8* null, i32 64, i8* null]
+ %1 = catchpad within %0 [ptr null, i32 64, ptr null]
invoke void @"extfunc"() [ "funclet"(token %1) ]
to label %invoke.cont98 unwind label %ehcleanup105
More information about the llvm-commits
mailing list