Displaying 1 result from an estimated 1 matches for "zextb".
Did you mean:
zext
2016 Sep 28
4
IR canonicalization: select or bool math?
..., %zexta
ret i32 %add
}
8. Choose {0,1,2} based on 2 bools?
a. define i32 @sel_sel(i1 %a, i1 %b) {
%zexta = zext i1 %a to i32
%sel1 = select i1 %a, i32 2, i32 1
%sel2 = select i1 %b, i32 %sel1, %zexta
ret i32 %sel2
}
b. define i32 @sel_sel(i1 %a, i1 %b) {
%zexta = zext i1 %a to i32
%zextb = zext i1 %b to i32
%add = add i32 %zexta, %zextb
ret i32 %add
}
Links for reference:
https://llvm.org/bugs/show_bug.cgi?id=30273
https://llvm.org/bugs/show_bug.cgi?id=30327
https://reviews.llvm.org/D24480
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http...