mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Use predicate for Value type test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b64e774ce5
commit
919758563d
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user