[llvm] [IRCE] Skip icmp ptr in `InductiveRangeCheck::parseRangeCheckICmp` (PR #89967)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 25 12:22:46 PDT 2024


================
@@ -279,6 +279,9 @@ bool InductiveRangeCheck::parseRangeCheckICmp(Loop *L, ICmpInst *ICI,
   Value *LHS = ICI->getOperand(0);
   Value *RHS = ICI->getOperand(1);
 
+  if (!LHS->getType()->isIntegerTy())
----------------
dtcxzyw wrote:

Pointer type is SCEVable, but `willNotOverflow` only supports binops with integers.


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


More information about the llvm-commits mailing list