diff options
-rw-r--r-- | lib/CodeGen/InstrSched/SchedGraph.cpp | 3 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedGraph.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index dc0916a..05109cb 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -482,8 +482,7 @@ SchedGraph::addSSAEdge(SchedGraphNode* node, Value* val, const TargetMachine& target) { - if (val->getValueType() != Value::InstructionVal) - return; + if (!val->isInstruction()) return; const Instruction* thisVMInstr = node->getInstr(); const Instruction* defVMInstr = (const Instruction*) val; diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp index dc0916a..05109cb 100644 --- a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp +++ b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp @@ -482,8 +482,7 @@ SchedGraph::addSSAEdge(SchedGraphNode* node, Value* val, const TargetMachine& target) { - if (val->getValueType() != Value::InstructionVal) - return; + if (!val->isInstruction()) return; const Instruction* thisVMInstr = node->getInstr(); const Instruction* defVMInstr = (const Instruction*) val; |