[PATCH] D64117: [WebAssembly][NFC] simplify SjLj inline assembly test
Guanzhong Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 18:23:48 PDT 2019
quantum created this revision.
quantum added reviewers: aheejin, tlively.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100, dschuff.
Herald added a project: LLVM.
Per feedback in D64115 <https://reviews.llvm.org/D64115>, simplify the test.
`hidden` is left in though, because every test in the file has it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64117
Files:
llvm/test/CodeGen/WebAssembly/lower-em-sjlj.ll
Index: llvm/test/CodeGen/WebAssembly/lower-em-sjlj.ll
===================================================================
--- llvm/test/CodeGen/WebAssembly/lower-em-sjlj.ll
+++ llvm/test/CodeGen/WebAssembly/lower-em-sjlj.ll
@@ -189,23 +189,14 @@
}
; Test inline asm handling
-define hidden void @inline_asm() #0 {
+define hidden void @inline_asm() {
; CHECK-LABEL: @inline_asm
entry:
%env = alloca [1 x %struct.__jmp_buf_tag], align 16
%arraydecay = getelementptr inbounds [1 x %struct.__jmp_buf_tag], [1 x %struct.__jmp_buf_tag]* %env, i32 0, i32 0
%call = call i32 @setjmp(%struct.__jmp_buf_tag* %arraydecay) #4
- %cmp = icmp eq i32 %call, 0
- br i1 %cmp, label %if.then, label %if.else
-
-if.then: ; preds = %entry
; CHECK: call void asm sideeffect "", ""()
call void asm sideeffect "", ""()
- %arraydecay1 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], [1 x %struct.__jmp_buf_tag]* %env, i32 0, i32 0
- call void @longjmp(%struct.__jmp_buf_tag* %arraydecay1, i32 1) #5
- unreachable
-
-if.else: ; preds = %entry
ret void
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64117.207686.patch
Type: text/x-patch
Size: 1146 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190703/a47ea980/attachment-0001.bin>
More information about the llvm-commits
mailing list