aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2020-09-22 10:43:18 +0100
committerSam Parker <sam.parker@arm.com>2020-09-25 08:50:53 +0100
commita399d1880bc6e2a13cad02a2a3cb024c27d32ac2 (patch)
tree219b2a40242088d5896fdaad6eea0671a53a2a53 /llvm/lib/CodeGen/ReachingDefAnalysis.cpp
parent396e7f454893e24969bb989fe89aa028e2ea1693 (diff)
downloadllvm-a399d1880bc6e2a13cad02a2a3cb024c27d32ac2.zip
llvm-a399d1880bc6e2a13cad02a2a3cb024c27d32ac2.tar.gz
llvm-a399d1880bc6e2a13cad02a2a3cb024c27d32ac2.tar.bz2
[ARM] Find VPT implicitly predicated by VCTP
On failing to find a VCTP in the list of instructions that explicitly predicate the entry of a VPT block, inspect whether the block is controlled via VPT which is implicitly predicated due to it's predicated operand(s). Differential Revision: https://reviews.llvm.org/D87819
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/ReachingDefAnalysis.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
index 86c2f63..f553bad 100644
--- a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
+++ b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
@@ -433,7 +433,6 @@ MachineInstr *ReachingDefAnalysis::getUniqueReachingMIDef(MachineInstr *MI,
if (LocalDef && InstIds.lookup(LocalDef) < InstIds.lookup(MI))
return LocalDef;
- SmallPtrSet<MachineBasicBlock*, 4> VisitedBBs;
SmallPtrSet<MachineInstr*, 2> Incoming;
MachineBasicBlock *Parent = MI->getParent();
for (auto *Pred : Parent->predecessors())