summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-03-03 10:02:25 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-03-03 10:02:25 +0000
commitce52b80744cd23677286115c60cc13f34113f558 (patch)
treea6ee8373bcc09e5804e3d8327031916c553afbf0 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parente96e6972945774f96866220fe7569918346b34e5 (diff)
downloadbcm5719-llvm-ce52b80744cd23677286115c60cc13f34113f558.tar.gz
bcm5719-llvm-ce52b80744cd23677286115c60cc13f34113f558.zip
[SDAG] Revert r296476 (and r296486, r296668, r296690).
This patch causes compile times for some patterns to explode. I have a (large, unreduced) test case that slows down by more than 20x and several test cases slow down by 2x. I'm sending some of the test cases directly to Nirav and following up with more details in the review log, but this should unblock anyone else hitting this. llvm-svn: 296862
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 123938646a3..fb1c3bcea59 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -3355,7 +3355,7 @@ void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch,
// a single use.
bool HasMultipleUses = false;
for (unsigned i = 1, e = NodeStack.size()-1; i != e; ++i)
- if (!NodeStack[i].getNode()->hasOneUse()) {
+ if (!NodeStack[i].hasOneUse()) {
HasMultipleUses = true;
break;
}
OpenPOWER on IntegriCloud