brintos

brintos / llvm-project-archived public Read only

0
0
Text · 782 B · a18ce33 Raw
26 lines · plain
1; RUN: llc < %s | llvm-mc -triple=wasm32-unknown-unknown2 3target triple = "wasm32-unknown-unknown"4 5define void @fake_use() {6  %t = call i32 @foo()7  tail call void (...) @llvm.fake.use(i32 %t)8  ret void9}10 11; %t shouldn't be converted to TEE in RegStackify, because the FAKE_USE will be12; deleted in the beginning of ExplicitLocals.13define void @fake_use_no_tee() {14  %t = call i32 @foo()15  tail call void (...) @llvm.fake.use(i32 %t)16  call void @use(i32 %t)17  ret void18}19 20declare i32 @foo()21declare void @use(i32 %t)22; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)23declare void @llvm.fake.use(...) #024 25attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) }26