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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 25 12:14:09 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())
----------------
fhahn wrote:

Better to use `SE->isSCEVable(LHS->getType())` as it makes the intention more explicit?

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


More information about the llvm-commits mailing list