diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2024-08-01 00:14:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-01 00:14:29 +0800 |
commit | b455edbc4566dca5a367122eadd0bae9058fbd7b (patch) | |
tree | a2d476c356ad7f010355b32ec092ea9467005830 /llvm/unittests/Support/ErrorTest.cpp | |
parent | 8b2688bd173e79392927bcaed91855e7c4db8eaa (diff) | |
download | llvm-b455edbc4566dca5a367122eadd0bae9058fbd7b.zip llvm-b455edbc4566dca5a367122eadd0bae9058fbd7b.tar.gz llvm-b455edbc4566dca5a367122eadd0bae9058fbd7b.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
0 files changed, 0 insertions, 0 deletions