[PATCH] D47113: [CVP] Teach CorrelatedValuePropagation to reduce the width of lshr instruction.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 26 05:17:00 PDT 2018


lebedev.ri added a comment.

In https://reviews.llvm.org/D47113#1113249, @lebedev.ri wrote:

> In https://reviews.llvm.org/D47113#1111060, @dmgreen wrote:
>
> > %shr.zext = zext i16 %shr to i32
> >  %arrayidx = getelementptr inbounds i16, i16* %AllocationMap, i32 %shr.zext
>
>
> Hmm, i think here we could avoid `zext`.


Actually, uhm, https://godbolt.org/g/jtNCSp, is the `idx` always canonicalized to `i64`?


Repository:
  rL LLVM

https://reviews.llvm.org/D47113





More information about the llvm-commits mailing list