[PATCH] D44833: [InstCombine] peek through bitcasted vector/array pointer GEP operand
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 23 15:52:35 PDT 2018
spatel added a comment.
In https://reviews.llvm.org/D44833#1047184, @efriedma wrote:
> That said, I'm surprised this matters; most pointer-related optimizations look through bitcasts.
Yes, I think you're correct. I assumed the differing types might trip up the vectorizers, but at least SLP doesn't seem to care in the motivating example.
So not sure if we want to add code for this. It does still remove the bitcast from PR16739, so the IR shrinks even if we don't vectorize it as expected.
https://reviews.llvm.org/D44833
More information about the llvm-commits
mailing list