aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-08-03 21:00:21 -0700
committerCraig Topper <craig.topper@sifive.com>2022-08-03 21:00:22 -0700
commit91e8079cd535a736cb6aabd24fc310a8ec46a07f (patch)
treef90bb0513c4812a39058e5ca44a9175db467211f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentc988c267cf6e302ceda1edc5c7c679ecb64eab75 (diff)
downloadllvm-91e8079cd535a736cb6aabd24fc310a8ec46a07f.zip
llvm-91e8079cd535a736cb6aabd24fc310a8ec46a07f.tar.gz
llvm-91e8079cd535a736cb6aabd24fc310a8ec46a07f.tar.bz2
[X86] Teach PostprocessISelDAG to fold ANDrm+TESTrr when chain result is used.
The isOnlyUserOf prevented the fold if the chain result had any users. What we really care about is the the data result from the AND is only used by the TEST, and the flags results from the ANDs aren't used at all. It's ok if the chain has users, we just need to replace those users with the chain from the TESTrm. Reviewed By: LuoYuanke Differential Revision: https://reviews.llvm.org/D131117
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions