brintos

brintos / llvm-project-archived public Read only

0
0
Text · 293 B · aba2c11 Raw
16 lines · plain
1; RUN: opt < %s -passes=instcombine -S | grep "ret i32 1"2 3declare void @test2()4 5define i32 @test(i1 %cond, ptr %P) {6  %A = alloca i327  store i32 1, ptr %P8  store i32 1, ptr %A9 10  call void @test2() readonly11 12  %P2 = select i1 %cond, ptr %P, ptr %A13  %V = load i32, ptr %P214  ret i32 %V15}16