summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2018-08-28 18:12:35 +0000
committerNirav Dave <niravd@google.com>2018-08-28 18:12:35 +0000
commit0b8cb46e0b8f593221478fa24a35bcf3e56edfaa (patch)
treefa91123f5905b3ef373b73e167c7937542067b4a
parent10de2775bd31d332f2f1a2a62634eff78cf9d31f (diff)
downloadbcm5719-llvm-0b8cb46e0b8f593221478fa24a35bcf3e56edfaa.tar.gz
bcm5719-llvm-0b8cb46e0b8f593221478fa24a35bcf3e56edfaa.zip
[DAG] Fix updateDivergence calculation
Check correct SDNode when deciding if we should update the divergence property. llvm-svn: 340851
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 9073591eaea..534585685c8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -7815,7 +7815,7 @@ void SelectionDAG::ReplaceAllUsesWith(SDNode *From, const SDValue *To) {
const SDValue &ToOp = To[Use.getResNo()];
++UI;
Use.set(ToOp);
- if (To->getNode()->isDivergent() != From->isDivergent())
+ if (ToOp->isDivergent() != From->isDivergent())
updateDivergence(User);
} while (UI != UE && *UI == User);
// Now that we have modified User, add it back to the CSE maps. If it
OpenPOWER on IntegriCloud