forked from OSchip/llvm-project
Test that xor/select are folded into a select with inverted operands.
llvm-svn: 21494
This commit is contained in:
parent
2c7d177d25
commit
b57d040464
|
@ -141,4 +141,8 @@ void %test20(uint %A, uint %B) { ; The "swap idiom"
|
|||
ret void
|
||||
}
|
||||
|
||||
|
||||
int %test21(bool %C, int %A, int %B) {
|
||||
%C2 = xor bool %C, true
|
||||
%D = select bool %C2, int %A, int %B
|
||||
ret int %D
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue