From: Chris Lattner Date: Mon, 10 Sep 2001 20:09:28 +0000 (+0000) Subject: Use predicate for Value type test X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=919758563deb865be67c7f861a9dfd2da4a895c8;p=oota-llvm.git Use predicate for Value type test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@540 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index dc0916a224f..05109cb8526 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 dc0916a224f..05109cb8526 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;