diff options
| author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2024-02-04 07:09:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-04 07:09:37 +0800 |
| commit | 390b99743bdd60649414fe470d7a9bacc9992231 (patch) | |
| tree | a1fd468ed858bc1da5559fe41bafce2b46215070 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 08e942aca64d4d16e55a25d7e7eda8ef192727fd (diff) | |
| download | llvm-390b99743bdd60649414fe470d7a9bacc9992231.zip llvm-390b99743bdd60649414fe470d7a9bacc9992231.tar.gz llvm-390b99743bdd60649414fe470d7a9bacc9992231.tar.bz2 | |
[InstCombine] Handle isNanOrInf idioms (#80414)
This patch folds:
```
(icmp eq (and (bitcast X to int), ExponentMask), ExponentMask) --> llvm.is.fpclass(X, fcInf|fcNan)
(icmp ne (and (bitcast X to int), ExponentMask), ExponentMask) --> llvm.is.fpclass(X, ~(fcInf|fcNan))
```
Alive2: https://alive2.llvm.org/ce/z/_hXAAF
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
