Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
Yingwei Zheng 390b99743b [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
2024-02-04 07:09:37 +08:00

307 KiB