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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 03:19:18 PST 2025


================
@@ -9240,6 +9262,21 @@ bool llvm::matchSimpleRecurrence(const PHINode *P, BinaryOperator *&BO,
 
       break; // Match!
     }
+    case Instruction::GetElementPtr: {
+      if (LU->getNumOperands() != 2 ||
+          !cast<GetElementPtrInst>(L)->getSourceElementType()->isIntegerTy(8))
----------------
fhahn wrote:

Done thanks

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


More information about the llvm-commits mailing list