aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/ConstantRangeTest.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2024-09-05 14:54:05 +0100
committerGitHub <noreply@github.com>2024-09-05 14:54:05 +0100
commit0ba78182b975d8ccd8ca42b33fbf038a85a44747 (patch)
tree0ca52ff8af6b908b94e307c5938f76c710dfb654 /llvm/unittests/IR/ConstantRangeTest.cpp
parent80cd2141eb7f6e7be738a01348bc2ccd08b41cd6 (diff)
downloadllvm-0ba78182b975d8ccd8ca42b33fbf038a85a44747.zip
llvm-0ba78182b975d8ccd8ca42b33fbf038a85a44747.tar.gz
llvm-0ba78182b975d8ccd8ca42b33fbf038a85a44747.tar.bz2
[X86] LowerSelect - generalize "select icmp(x,0), lhs, rhs" folding patterns [NFC] (#107374)
This patch proposes we add a LowerSELECTWithCmpZero helper, which allows us to fold the compare-with-zero from different condition nodes with minimal duplication. So far I've only handled the simple no-cmov case for or/xor nodes, but the intention is to convert more folds in future PRs. NFC preliminary patch for #107272
Diffstat (limited to 'llvm/unittests/IR/ConstantRangeTest.cpp')
0 files changed, 0 insertions, 0 deletions