History log of /llvm-project/llvm/test/Transforms/InstCombine/select-icmp-xor.ll (Results 1 – 1 of 1)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3
# 682fa797 16-Oct-2024 Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com>

InstCombine/Select: remove redundant code (NFC) (#112388)

InstCombinerImpl::foldSelectInstWithICmp has some inlined code for
select-icmp-xor simplification, but this simplification is already done

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.

show more ...