summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-07-27 06:40:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-07-27 06:40:15 +0000
commit33e9ad96c8506313cc263893e9915d0a3457fc82 (patch)
treebb92eae5879a8e3ed9e09ec0e956f37aee80cfbb
parent091cba1b9132759cc4ef0e9e528f244c2024c445 (diff)
downloadexternal_llvm-33e9ad96c8506313cc263893e9915d0a3457fc82.zip
external_llvm-33e9ad96c8506313cc263893e9915d0a3457fc82.tar.gz
external_llvm-33e9ad96c8506313cc263893e9915d0a3457fc82.tar.bz2
Remove NodeDepth
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29338 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/IA64/IA64ISelDAGToDAG.cpp7
-rw-r--r--lib/Target/PowerPC/PPCISelDAGToDAG.cpp7
2 files changed, 2 insertions, 12 deletions
diff --git a/lib/Target/IA64/IA64ISelDAGToDAG.cpp b/lib/Target/IA64/IA64ISelDAGToDAG.cpp
index 2289687..3fb7b2a 100644
--- a/lib/Target/IA64/IA64ISelDAGToDAG.cpp
+++ b/lib/Target/IA64/IA64ISelDAGToDAG.cpp
@@ -118,12 +118,7 @@ void IA64DAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
while (!Worklist.empty()) {
SDOperand Node = Worklist.back();
Worklist.pop_back();
-
- // Chose from the least deep of the top two nodes.
- if (!Worklist.empty() &&
- Worklist.back().Val->getNodeDepth() < Node.Val->getNodeDepth())
- std::swap(Worklist.back(), Node);
-
+
if ((Node.Val->getOpcode() >= ISD::BUILTIN_OP_END &&
Node.Val->getOpcode() < IA64ISD::FIRST_NUMBER) ||
CodeGenMap.count(Node)) continue;
diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 6c057fd..99d9788 100644
--- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -191,12 +191,7 @@ void PPCDAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
while (!Worklist.empty()) {
SDOperand Node = Worklist.back();
Worklist.pop_back();
-
- // Chose from the least deep of the top two nodes.
- if (!Worklist.empty() &&
- Worklist.back().Val->getNodeDepth() < Node.Val->getNodeDepth())
- std::swap(Worklist.back(), Node);
-
+
if ((Node.Val->getOpcode() >= ISD::BUILTIN_OP_END &&
Node.Val->getOpcode() < PPCISD::FIRST_NUMBER) ||
CodeGenMap.count(Node)) continue;