[PATCH] D86607: [RDA] Don't visit the BB of the instruction in getUniqueReachingMIDef
Sam Tebbs via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 04:41:15 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG85dd852a0d46: [RDA] Don't visit the BB of the instruction in getReachingUniqueMIDef (authored by samtebbs).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86607/new/
https://reviews.llvm.org/D86607
Files:
llvm/lib/CodeGen/ReachingDefAnalysis.cpp
Index: llvm/lib/CodeGen/ReachingDefAnalysis.cpp
===================================================================
--- llvm/lib/CodeGen/ReachingDefAnalysis.cpp
+++ llvm/lib/CodeGen/ReachingDefAnalysis.cpp
@@ -423,7 +423,9 @@
SmallPtrSet<MachineBasicBlock*, 4> VisitedBBs;
SmallPtrSet<MachineInstr*, 2> Incoming;
- for (auto *Pred : MI->getParent()->predecessors())
+ MachineBasicBlock *Parent = MI->getParent();
+ VisitedBBs.insert(Parent);
+ for (auto *Pred : Parent->predecessors())
getLiveOuts(Pred, PhysReg, Incoming, VisitedBBs);
// If we have a local def and an incoming instruction, then there's not a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86607.287926.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200826/025cec02/attachment.bin>
More information about the llvm-commits
mailing list