[PATCH] D148205: [IRCE] Refactor parseRangeCheckICmp to compute SCEVs instead of Values

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 22:19:28 PDT 2023


mkazantsev accepted this revision.
mkazantsev added a comment.
This revision is now accepted and ready to land.

Looks pretty straightforward.



================
Comment at: llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:368
 
-  Value *Length = nullptr, *Index;
-  if (!parseRangeCheckICmp(L, ICI, SE, Index, Length))
+  const SCEV *End = nullptr, *Index;
+  if (!parseRangeCheckICmp(L, ICI, SE, Index, End))
----------------
`*Index = nullptr`, just to avoid errors in the future.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148205/new/

https://reviews.llvm.org/D148205



More information about the llvm-commits mailing list