[PATCH] D132255: [TwoAddressInstruction] Handle pointer compare sunk past statepoint.
Denis Antrushin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 19 11:22:40 PDT 2022
dantrushin created this revision.
dantrushin added a reviewer: skatkov.
Herald added subscribers: mstorsjo, pengfei, hiraditya.
Herald added a project: All.
dantrushin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
CodeGenPrepare pass can sink pointer comparison across statepoint
to the point of use (see comment in IR/SafepointIRVerifier.cpp)
Due to specifics of statepoints, it is still legal to have tied
def and use rewritten to the same register in TwoAddress pass.
However, properly updating LiveIntervals and LiveVariables becomes
complicated. For simplicity, let's fall back to generic handling of
tied registers when we detect such case.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132255
Files:
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
llvm/test/CodeGen/X86/statepoint-cmp-sunk-past-statepoint.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132255.454069.patch
Type: text/x-patch
Size: 8253 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220819/62deb0ed/attachment.bin>
More information about the llvm-commits
mailing list