Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InstCombine: Fold logic of fp_classes together
Move logical operators on pairs of llvm.is.fpclass on the same value into the test mask of a single is_fpclass. or (class x, mask0), (class x, mask1) -> class x, (mask0 | mask1) and (class x, mask0), (class x, mask1) -> class x, (mask0 & mask1) xor (class x, mask0), (class x, mask1) -> class x, (mask0 ^ mask1) The and/or cases should appear frequently in the builtin math libraries; haven't seen the xor case but handle it for completeness.
- Loading branch information
Showing
3 changed files
with
81 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.