[llvm] [LV] Rewrite UDiv A, B -> UDiv A, UMax(B, 1) in trip counts if needed. (PR #92177)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 28 13:30:20 PDT 2024
================
@@ -2315,12 +2325,17 @@ struct SCEVFindUnsafe {
};
} // namespace
-bool SCEVExpander::isSafeToExpand(const SCEV *S) const {
+bool SCEVExpander::isSafeToExpand(const SCEV *S, bool CanonicalMode,
+ ScalarEvolution &SE) {
SCEVFindUnsafe Search(SE, CanonicalMode);
visitAll(S, Search);
return !Search.IsUnsafe;
}
+bool SCEVExpander::isSafeToExpand(const SCEV *S) const {
+ return isSafeToExpand(S, CanonicalMode, SE);
+}
+
bool SCEVExpander::isSafeToExpandAt(const SCEV *S,
----------------
fhahn wrote:
removed those changes
https://github.com/llvm/llvm-project/pull/92177
More information about the llvm-commits
mailing list