summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-06-14 15:32:59 +0000
committerLang Hames <lhames@gmail.com>2018-06-14 15:32:59 +0000
commitb7788ebb4a992d7ccd141c91d08e72c18e3158cc (patch)
treef890ef24e8ab73c34abf3eb6da454af8f3f7a2d3 /llvm/lib/ExecutionEngine
parentbd49fb83aad85924d39df4afd9e946ab4f862efd (diff)
downloadbcm5719-llvm-b7788ebb4a992d7ccd141c91d08e72c18e3158cc.tar.gz
bcm5719-llvm-b7788ebb4a992d7ccd141c91d08e72c18e3158cc.zip
[ORC] Filter out self-dependencies in VSO::addDependencies.
llvm-svn: 334724
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/Core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index aeb10a584c3..82be34476f6 100644
--- a/llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -452,7 +452,7 @@ void VSO::addDependencies(const SymbolFlagsMap &Dependants,
if (OtherMI.IsFinalized)
transferFinalizedNodeDependencies(MI, Name, OtherMI);
- else {
+ else if (&OtherVSO != this || OtherSymbol != Name) {
OtherMI.Dependants[this].insert(Name);
DepsOnOtherVSO.insert(OtherSymbol);
}
OpenPOWER on IntegriCloud