[PATCH] D111128: TailDuplication: do not remove trivial PHIs from addr-taken blocks.
Tim Northover via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 5 02:29:32 PDT 2021
t.p.northover created this revision.
Herald added subscribers: hiraditya, mcrosier.
t.p.northover requested review of this revision.
Herald added a project: LLVM.
Unlike an anonymous block, it will not be removed even though we've resolved all valid paths to get here. So removing a PHI can leave vregs with no definition, violating SSA. Instead, this converts it to an `IMPLICIT_DEF`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111128
Files:
llvm/lib/CodeGen/TailDuplicator.cpp
llvm/test/CodeGen/AArch64/taildup-addrtaken.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111128.377123.patch
Type: text/x-patch
Size: 4893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211005/75eef64d/attachment.bin>
More information about the llvm-commits
mailing list