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 | 44a45af61b15244ca09dd0315b1365a92ae2a1a4 (patch) | |
| tree | 66e6410d991d36f584b08137cf77d2ce40026d70 /llvm/lib/CodeGen/InstrSched | |
| parent | c4b26345747a9d45737d4284980d01b958e4d40e (diff) | |
| download | bcm5719-llvm-44a45af61b15244ca09dd0315b1365a92ae2a1a4.tar.gz bcm5719-llvm-44a45af61b15244ca09dd0315b1365a92ae2a1a4.zip | |
Use predicate for Value type test
llvm-svn: 540
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSched/SchedGraph.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp index dc0916a224f..05109cb8526 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/llvm/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; |

