mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
Remove NodeDepth
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
091cba1b91
commit
33e9ad96c8
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user