diff options
author | Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> | 2024-10-16 12:44:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 12:44:09 +0100 |
commit | 682fa797b7358733df9e439241a9ef2906003adf (patch) | |
tree | 92bbc98d04f381f9e6a686a550851f02a8fd9b90 /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp | |
parent | 09361953116770b646decf5820a9455ada2ba4fc (diff) | |
download | llvm-682fa797b7358733df9e439241a9ef2906003adf.zip llvm-682fa797b7358733df9e439241a9ef2906003adf.tar.gz llvm-682fa797b7358733df9e439241a9ef2906003adf.tar.bz2 |
InstCombine/Select: remove redundant code (NFC) (#112388)
InstCombinerImpl::foldSelectInstWithICmp has some inlined code for
select-icmp-xor simplification, but this simplification is already done
by other code, via another path:
(X & Y) == 0 ? X : X ^ Y ->
((X & Y) == 0 ? 0 : Y) ^ X ->
(X & Y) ^ X ->
X & ~Y
Cover the cases that it claims to simplify, and demonstrate that
stripping it doesn't cause test changes.
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions