[AArch64][NFC] NFC for const vector as Instruction operand (#116790)
[llvm-project.git] / llvm / test / Transforms / InstCombine / select-load-call.ll
blobaba2c115e190e7b6f942941208c5b70413d4249d
1 ; RUN: opt < %s -passes=instcombine -S | grep "ret i32 1"
3 declare void @test2()
5 define i32 @test(i1 %cond, ptr %P) {
6   %A = alloca i32
7   store i32 1, ptr %P
8   store i32 1, ptr %A
10   call void @test2() readonly
12   %P2 = select i1 %cond, ptr %P, ptr %A
13   %V = load i32, ptr %P2
14   ret i32 %V