[PATCH] D126502: [SCEV] Apply conditions involving constants first in applyLoopGuards.

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 02:56:47 PDT 2022


mkazantsev added inline comments.


================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:14560
+      return false;
+    bool IsRangeA = CmpA->getPredicate() != CmpInst::ICMP_NE &&
+                    CmpA->getPredicate() != CmpInst::ICMP_EQ;
----------------
Use `isRelational`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126502



More information about the llvm-commits mailing list