brintos

brintos / llvm-project-archived public Read only

0
0
Text · 608 B · df98e6a Raw
25 lines · plain
1; This test shows a few canonicalizations made by deadargelim2; RUN: opt < %s -passes=deadargelim -S > %t3; This test should remove {} and replace it with void4; RUN: cat %t | grep "define internal void @test"5; This test shouls replace the {i32} return value with just i326; RUN: cat %t | grep "define internal i32 @test2"7 8define internal {} @test() {9  ret {} undef10}11 12define internal {i32} @test2() {13  ret {i32} undef14}15 16define void @caller() {17  call {} @test()18  %X = call {i32} @test2()19  %Y = extractvalue {i32} %X, 020  call void @user(i32 %Y, {i32} %X)21  ret void22}23 24declare void @user(i32, {i32})25