[llvm] r221693 - LLVM incorrectly folds xor into select

Tim Northover tnorthover at apple.com
Tue Nov 11 10:00:19 PST 2014


> 
> Would you mind also adding tests for what you expect these two to be lowered as:
> 
> define i32 @t15_2(i32 %p1, i32 %p2, i32 %p3) {
> entry:
>  %cmp = icmp sgt i32 %p1, 8
>  %a = select i1 %cmp, i32 %p2, i32 %p3
>  %xor = xor i32 %a, -1
>  ret i32 %xor
> }

Isn't this the test that was already added?

Cheers.

Tim.



More information about the llvm-commits mailing list