[llvm] [LV] Rewrite UDiv A, B -> UDiv A, UMax(B, 1) in trip counts if needed. (PR #92177)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 27 15:02:30 PDT 2024
================
@@ -300,6 +305,9 @@ class SCEVExpander : public SCEVVisitor<SCEVExpander, Value *> {
/// location and their operands are defined at this location.
bool isSafeToExpandAt(const SCEV *S, const Instruction *InsertionPoint) const;
+ static bool isSafeToExpand(const SCEV *S, bool CanonicalMode,
+ ScalarEvolution &SE);
----------------
nikic wrote:
I don't see where this new method is used.
https://github.com/llvm/llvm-project/pull/92177
More information about the llvm-commits
mailing list