aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-12-08 11:25:41 +0100
committerGitHub <noreply@github.com>2023-12-08 11:25:41 +0100
commitcf47af493b1288b453a77a4b66959c6ee7a85c34 (patch)
treec3d18dcaa1e79408c364c16a4a74c84d4359ece6 /llvm/lib/Support/CommandLine.cpp
parentd0d5ef8133a169b23359da5b1e77475dd33b370b (diff)
downloadllvm-cf47af493b1288b453a77a4b66959c6ee7a85c34.zip
llvm-cf47af493b1288b453a77a4b66959c6ee7a85c34.tar.gz
llvm-cf47af493b1288b453a77a4b66959c6ee7a85c34.tar.bz2
[InstCombine] Generalize folds for inversion of icmp operands (#74317)
We have a bunch of folds that basically perform X pred Y to ~Y pred ~X for various special cases where this saves an instruction. Generalize these folds to use isFreeToInvert(). We have to make sure that we consume an instruction in either of the inversions, otherwise we're just going to swap the icmp back and forth. Fixes https://github.com/llvm/llvm-project/issues/74302.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions