llvm-project
71430c34 - [InstCombine][KnownFPClass] Refine fptrunc_round infinity classes based on the rounding mode (#244500)

Commit
22 hours ago
[InstCombine][KnownFPClass] Refine fptrunc_round infinity classes based on the rounding mode (#244500) Refines `fptrunc_round` for directed rounding modes. `TowardZero` and `TowardNegative` can't overflow to positive infinity, and `TowardZero` and `TowardPositive` can't overflow to negative infinity. I also added some tests to guard against bugs related to flushing denormals before rounding (tiny before rounding). AI Disclosure: I used Claude Opus 5.5 to help write the tests.
Author
Parents
Loading