aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorVolodymyr Vasylkun <vvmposeydon@gmail.com>2024-08-19 13:02:29 +0100
committerGitHub <noreply@github.com>2024-08-19 13:02:29 +0100
commitabf69a167bbc99054871e3f9cc8810bbebcb6747 (patch)
treeb1dd7c1972966868810ccb07811d025f8bd52ce7 /llvm/unittests/Support/MathExtrasTest.cpp
parentb8dccb7d56c7e32b549c00a094d1b6ac32a01328 (diff)
downloadllvm-abf69a167bbc99054871e3f9cc8810bbebcb6747.zip
llvm-abf69a167bbc99054871e3f9cc8810bbebcb6747.tar.gz
llvm-abf69a167bbc99054871e3f9cc8810bbebcb6747.tar.bz2
[InstCombine] Fold `(x < y) ? -1 : zext(x != y)` into `u/scmp(x,y)` (#101049)
This patch adds the aforementioned fold to InstCombine. This pattern is produced after naive implementations of 3-way comparison in high-level languages are transformed into LLVM IR and then optimized. Proofs: https://alive2.llvm.org/ce/z/w4QLq_
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions