[llvm] [SCEV] Split collecting and applying rewrite info from loop guards (NFC) (PR #97316)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 03:56:22 PDT 2024
================
@@ -1299,8 +1299,17 @@ class ScalarEvolution {
/// sharpen it.
void setNoWrapFlags(SCEVAddRecExpr *AddRec, SCEV::NoWrapFlags Flags);
+ /// Collect rewrite map for loop guards for loop \p L, together with flags
+ /// indidcating if NUW and NSW can be preserved during rewriting.
+ std::tuple<DenseMap<const SCEV *, const SCEV *>, bool, bool>
----------------
nikic wrote:
Can we make this a `class LoopGuards` instead?
https://github.com/llvm/llvm-project/pull/97316
More information about the llvm-commits
mailing list