Displaying 1 result from an estimated 1 matches for "f2bfb19d".
2016 Aug 28
2
IR canonicalization: vector select or shufflevector?
A vector select with a constant vector condition operand:
define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b) {
%sel = select <4 x i1> <i1 true, i1 false, i1 false, i1 true>, <4 x i32>
%a, <4 x i32> %b
ret <4 x i32> %sel
}
...is equivalent to a shufflevector:
define <4 x i32> @goo(<4 x i32> %a, <4 x i32> %b) {
%shuf =