[PATCH] D149409: [ValueTracking] Handle bitcasts between vec-int-ptr in `isKnownNonZero`
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 29 12:05:00 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2776
return isKnownNonZero(I->getOperand(0), Depth, Q);
- break;
+ } break;
case Instruction::IntToPtr:
----------------
goldstein.w.n wrote:
> nikic wrote:
> > I believe we can `return false` here now.
> Think it makes sense to let `computeKnownBits` run. More future proof and could help in some cases (i.e the <4xi3> -> <3xi4> is provable in some cases (lsb + msb set in all `i3` elements) and computeKnownBits could (although granted doesn't at the moment) get that.
Okay, fair enough. We'll almost always take this code path anyway.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149409/new/
https://reviews.llvm.org/D149409
More information about the llvm-commits
mailing list