diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:09:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:09:28 +0000 |
commit | 919758563deb865be67c7f861a9dfd2da4a895c8 (patch) | |
tree | 4561a02c1cc62fa13f8e23b31904c2fbf2387d44 | |
parent | b64e774ce53da6b56ec055cfb62a4a1d246b7228 (diff) | |
download | external_llvm-919758563deb865be67c7f861a9dfd2da4a895c8.zip external_llvm-919758563deb865be67c7f861a9dfd2da4a895c8.tar.gz external_llvm-919758563deb865be67c7f861a9dfd2da4a895c8.tar.bz2 |
Use predicate for Value type test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@540 91177308-0d34-0410-b5e6-96231b3b80d8
-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; |