[PATCH] D98659: [MachineCopyPropagation] Do more backward copy propagations
yshui via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 16 06:34:41 PDT 2021
yshui updated this revision to Diff 330966.
yshui added a comment.
Strengthen the invariant maintained by the CopyTracker.
`trackUse` assumed that when a copy instruction exists in `Copies`, it can be found via both its `Def` and its `Src`. This wasn't true previously, causing segfaults because `findCopyDefViaUnit` returned `nullptr`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98659/new/
https://reviews.llvm.org/D98659
Files:
llvm/lib/CodeGen/MachineCopyPropagation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98659.330966.patch
Type: text/x-patch
Size: 18791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210316/a26cfcb5/attachment.bin>
More information about the llvm-commits
mailing list