aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-08-26 09:55:52 +0200
committerGitHub <noreply@github.com>2024-08-26 09:55:52 +0200
commit28fe6ddd9b9af0167d355ceb5b9eace53c7f162b (patch)
tree19d6650299282faf460ada25542e9a0cf0aedaeb /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentdad14d4d729360c2db36745ae9d9cd9d2a6a8c37 (diff)
downloadllvm-28fe6ddd9b9af0167d355ceb5b9eace53c7f162b.zip
llvm-28fe6ddd9b9af0167d355ceb5b9eace53c7f162b.tar.gz
llvm-28fe6ddd9b9af0167d355ceb5b9eace53c7f162b.tar.bz2
[InstCombine] Remove AllOnes fallbacks in getMaskedTypeForICmpPair() (#104941)
getMaskedTypeForICmpPair() tries to model non-and operands as x & -1. However, this can end up confusing the matching logic, by picking the -1 operand as the "common" operand, resulting in a successful, but useless, match. This is what causes commutation failures for some of the optimizations driven by this function. Fix this by treating a match against -1 as a non-match.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions