[llvm] [ValueTracking] Support GEPs in matchSimpleRecurrence. (PR #123518)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 08:11:43 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)) {
----------------
dtcxzyw wrote:

If the pointer width is different from the index width, the optimization will be disabled. Is there a real target satisfying the condition?

https://github.com/llvm/llvm-project/pull/123518


More information about the llvm-commits mailing list