[llvm] [SCEV] Introduce exact flag for UDiv (PR #225065)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 01:46:38 PDT 2026
================
@@ -154,16 +155,14 @@ struct SCEVUseT : private PointerIntPair<SCEVPtrT, 2> {
/// flags and the underlying SCEV's flags, masked by \p Mask.
SCEVFlags getNoWrapFlags(SCEVFlags Mask = SCEVFlags::FlagsNoWrapMask) const;
+ /// Return the flags for this SCEVUse, masked for the exact flag.
+ SCEVFlags getExactFlag() const;
+
/// Return only the use-specific flags without the underlying SCEV's flags.
SCEVFlags getUseNoWrapFlags() const {
return getUseFlags() & SCEVFlags::FlagsNoWrapMask;
}
- SCEVFlags getUseFlags() const {
----------------
artagnon wrote:
Ah, it is this PR that necessitated moving this function out of the header, and there would be no motivation for this change without this PR -- the function has changed and uses a SCEV expression?
https://github.com/llvm/llvm-project/pull/225065
More information about the llvm-commits
mailing list