Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Yingwei Zheng b455edbc45 [InstCombine] Recognize copysign idioms (#101324)
This patch folds `(bitcast (or (and (bitcast X to int), signmask), nneg
Y) to fp)` into `copysign((bitcast Y to fp), X)`. I found this pattern
exists in some graphics applications/math libraries.

Alive2: https://alive2.llvm.org/ce/z/ggQZV2
2024-08-01 00:14:29 +08:00

114 KiB