Use predicate for Value type test

llvm-svn: 540
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
index dc0916a..05109cb 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
+++ b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
@@ -482,8 +482,7 @@
 		       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;