diff options
| author | Nikita Popov <npopov@redhat.com> | 2024-08-26 09:55:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 09:55:52 +0200 |
| commit | 28fe6ddd9b9af0167d355ceb5b9eace53c7f162b (patch) | |
| tree | 19d6650299282faf460ada25542e9a0cf0aedaeb /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
| parent | dad14d4d729360c2db36745ae9d9cd9d2a6a8c37 (diff) | |
| download | llvm-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
