You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When analyzing operations that might exhibit overflow, we can often determine whether or not such an overflow could occur, which is data that can be expressed using the nuw and nsw overflow flags. This is information that can be annotated onto operations and might be usable to make some bits of the analysis more precise.
So the ConstantIntRanges struct could grow a std::optionalarith::OverflowFlags field to mark whether the associated operation could've overflowed while computing that result.
When analyzing operations that might exhibit overflow, we can often determine whether or not such an overflow could occur, which is data that can be expressed using the nuw and nsw overflow flags. This is information that can be annotated onto operations and might be usable to make some bits of the analysis more precise.
So the ConstantIntRanges struct could grow a std::optional<arith::OverflowFlags> field to mark whether the associated operation could've overflowed while computing that result.
@badumbatish It might take some time to get familiar with IntRangeOptimizations.cpp and all the infrastructure that's going on in there. So this isn't a trivial issue, but it would make a good way to get familiar with the code.
Activity
llvmbot commentedon Jun 20, 2025
@llvm/issue-subscribers-mlir
Author: Krzysztof Drewniak (krzysz00)
So the ConstantIntRanges struct could grow a std::optional<arith::OverflowFlags> field to mark whether the associated operation could've overflowed while computing that result.
badumbatish commentedon Jul 10, 2025
is this an issue for beginner?
krzysz00 commentedon Aug 13, 2025
@badumbatish It might take some time to get familiar with
IntRangeOptimizations.cpp
and all the infrastructure that's going on in there. So this isn't a trivial issue, but it would make a good way to get familiar with the code.(Sorry, didn't see your comment until now)