aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ErrorTest.cpp
diff options
context:
space:
mode:
authorYingwei Zheng <dtcxzyw2333@gmail.com>2024-08-01 00:14:29 +0800
committerGitHub <noreply@github.com>2024-08-01 00:14:29 +0800
commitb455edbc4566dca5a367122eadd0bae9058fbd7b (patch)
treea2d476c356ad7f010355b32ec092ea9467005830 /llvm/unittests/Support/ErrorTest.cpp
parent8b2688bd173e79392927bcaed91855e7c4db8eaa (diff)
downloadllvm-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