Skip to content

[mlir][IntegerRangeAnalysis] Teach the analysis to infer overflow flags #145092

Open
@krzysz00

Description

@krzysz00

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions