summaryrefslogtreecommitdiff
path: root/lib/CodeGen/InstrSched/SchedGraph.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-08-18 20:04:24 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-08-18 20:04:24 +0000
commit418379e229dc491050f7f6292aa8364c29b71301 (patch)
tree31de07aef8edcd0f8dfe0050513c5587dcace151 /lib/CodeGen/InstrSched/SchedGraph.cpp
parente058b27faf9ba0df1582fddda55c3bcbd96de9a0 (diff)
downloadllvm-418379e229dc491050f7f6292aa8364c29b71301.tar.gz
llvm-418379e229dc491050f7f6292aa8364c29b71301.tar.bz2
llvm-418379e229dc491050f7f6292aa8364c29b71301.tar.xz
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedGraph.cpp')
-rw-r--r--lib/CodeGen/InstrSched/SchedGraph.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp
index 03771fe01d..e3b3cba524 100644
--- a/lib/CodeGen/InstrSched/SchedGraph.cpp
+++ b/lib/CodeGen/InstrSched/SchedGraph.cpp
@@ -21,6 +21,7 @@
#include "llvm/Target/TargetMachine.h"
#include "../../Target/SparcV9/MachineCodeForInstruction.h"
#include "../../Target/SparcV9/SparcV9RegInfo.h"
+#include "../../Target/SparcV9/SparcV9InstrInfo.h"
#include "Support/STLExtras.h"
#include <iostream>
@@ -561,7 +562,7 @@ void SchedGraph::buildNodesForBB(const TargetMachine& target,
unsigned i = 0;
for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); I != E;
++I, ++i)
- if (!mii.isDummyPhiInstr(I->getOpcode())) {
+ if (I->getOpcode() != V9::PHI) {
SchedGraphNode* node = new SchedGraphNode(getNumNodes(), &MBB, i, target);
noteGraphNodeForInstr(I, node);