[PATCH] D136445: [TwoAddressInstruction] Fix stale LiveVariables info in processStatepoint
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 07:00:36 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG33f78d0903eb: [TwoAddressInstruction] Fix stale LiveVariables info in processStatepoint (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136445/new/
https://reviews.llvm.org/D136445
Files:
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
Index: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
===================================================================
--- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -1706,6 +1706,7 @@
LiveVariables::VarInfo &SrcInfo = LV->getVarInfo(RegB);
LiveVariables::VarInfo &DstInfo = LV->getVarInfo(RegA);
SrcInfo.AliveBlocks |= DstInfo.AliveBlocks;
+ DstInfo.AliveBlocks.clear();
for (auto *KillMI : DstInfo.Kills)
LV->addVirtualRegisterKilled(RegB, *KillMI, false);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136445.469596.patch
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221021/e93f5a4d/attachment.bin>
More information about the llvm-commits
mailing list