[llvm] [ValueTracking] Support GEPs in matchSimpleRecurrence. (PR #123518)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 28 13:46:08 PDT 2025
================
@@ -1660,6 +1661,11 @@ static void computeKnownBitsFromOperator(const Operator *I,
// We need to take the minimum number of known bits
KnownBits Known3(BitWidth);
+ if (BitWidth != getBitWidth(L->getType(), Q.DL)) {
----------------
fhahn wrote:
Yes this is happening in a lot of workloads in practice, e.g. index width 64 bits and GEPs with i32 indices.
https://github.com/llvm/llvm-project/pull/123518
More information about the llvm-commits
mailing list