Unverified Commit 6784bf76 authored by Ivy Zhang's avatar Ivy Zhang Committed by GitHub
Browse files

[MLIR][Arith] add fastMathAttr on arith::extf and arith::truncf (#93443)

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.
parent 86d8aec9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment