Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
Yingwei Zheng f292f90bc2 [InstCombine] Fold select with signbit idiom into fabs (#76342)
This patch folds:
```
((bitcast X to int) <s 0 ? -X : X) -> fabs(X)
((bitcast X to int) >s -1 ? X : -X) -> fabs(X)
((bitcast X to int) <s 0 ? X : -X) -> -fabs(X)
((bitcast X to int) >s -1 ? -X : X) -> -fabs(X)
```
Alive2: https://alive2.llvm.org/ce/z/rGepow
2024-01-31 15:42:09 +08:00

150 KiB