Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MLIR][Arith][Resubmit] add fastMathAttr on arith::extf and arith::truncf #95346

Merged
merged 30 commits into from
Jun 14, 2024

Conversation

crazydemo
Copy link
Contributor

Add an fastMathAttr on arith::extf and arith::truncf. If these two
ops are inserted by some promotion passes (like legalize-to-f32 /
emulate-unsupported-floats), they will be labeled as
FastMathFlags::contract, denoting that they can be then eliminated by canonicalizer.

The elimination can help improve performance, while may introduce some
numerical differences.

@crazydemo crazydemo force-pushed the zhangyan/independent_canonicalize branch from c9e2e32 to 3ae7790 Compare June 13, 2024 15:58
@crazydemo crazydemo merged commit 7042fcc into llvm:main Jun 14, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants