mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +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,
|
Value* val,
|
||||||
const TargetMachine& target)
|
const TargetMachine& target)
|
||||||
{
|
{
|
||||||
if (val->getValueType() != Value::InstructionVal)
|
if (!val->isInstruction()) return;
|
||||||
return;
|
|
||||||
|
|
||||||
const Instruction* thisVMInstr = node->getInstr();
|
const Instruction* thisVMInstr = node->getInstr();
|
||||||
const Instruction* defVMInstr = (const Instruction*) val;
|
const Instruction* defVMInstr = (const Instruction*) val;
|
||||||
|
@ -482,8 +482,7 @@ SchedGraph::addSSAEdge(SchedGraphNode* node,
|
|||||||
Value* val,
|
Value* val,
|
||||||
const TargetMachine& target)
|
const TargetMachine& target)
|
||||||
{
|
{
|
||||||
if (val->getValueType() != Value::InstructionVal)
|
if (!val->isInstruction()) return;
|
||||||
return;
|
|
||||||
|
|
||||||
const Instruction* thisVMInstr = node->getInstr();
|
const Instruction* thisVMInstr = node->getInstr();
|
||||||
const Instruction* defVMInstr = (const Instruction*) val;
|
const Instruction* defVMInstr = (const Instruction*) val;
|
||||||
|
Loading…
Reference in New Issue
Block a user