search for: zextvec

Displaying 4 results from an estimated 4 matches for "zextvec".

2017 Jan 13
2
IR canonicalization: shufflevector or vector trunc?
...x i32> @zextshuffle(<2 x i16> %x) { %zext_shuffle = shufflevector <2 x i16> %x, <2 x i16> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 2> %bc = bitcast <4 x i16> %zext_shuffle to <2 x i32> ret <2 x i32> %bc } define <2 x i32> @zextvec(<2 x i16> %x) { %zext = zext <2 x i16> %x to <2 x i32> ret <2 x i32> %zext } IMO, the fact that we have to take endianness into account with the shuffles makes the trunc/zext forms the better choice. That way, we limit the endian dependency to one place in InstCombine,...
2017 Jan 17
2
IR canonicalization: shufflevector or vector trunc?
...6> %x) { > %zext_shuffle = shufflevector <2 x i16> %x, <2 x i16> zeroinitializer, > <4 x i32> <i32 0, i32 2, i32 1, i32 2> > %bc = bitcast <4 x i16> %zext_shuffle to <2 x i32> > ret <2 x i32> %bc > } > > define <2 x i32> @zextvec(<2 x i16> %x) { > %zext = zext <2 x i16> %x to <2 x i32> > ret <2 x i32> %zext > } > > IMO, the fact that we have to take endianness into account with the > shuffles makes the trunc/zext forms the better choice. That way, we limit > the endian depend...
2017 Jan 21
2
IR canonicalization: shufflevector or vector trunc?
...6> %x) { > %zext_shuffle = shufflevector <2 x i16> %x, <2 x i16> zeroinitializer, > <4 x i32> <i32 0, i32 2, i32 1, i32 2> > %bc = bitcast <4 x i16> %zext_shuffle to <2 x i32> > ret <2 x i32> %bc > } > > define <2 x i32> @zextvec(<2 x i16> %x) { > %zext = zext <2 x i16> %x to <2 x i32> > ret <2 x i32> %zext > } > > IMO, the fact that we have to take endianness into account with the > shuffles makes the trunc/zext forms the better choice. That way, we limit > the endian depend...
2017 Jan 12
2
IR canonicalization: shufflevector or vector trunc?
On Thu, Jan 12, 2017 at 11:06 AM, Friedman, Eli <efriedma at codeaurora.org> wrote: > On 1/12/2017 9:04 AM, Sanjay Patel via llvm-dev wrote: > > It's time for another round of "What is the canonical IR?" > > Credit for this episode to Zvi and PR31551. :) > https://llvm.org/bugs/show_bug.cgi?id=31551 > > define <4 x i16> @shuffle(<16 x i16>