diff options
Diffstat (limited to 'lib/Target/SparcV9/InstrSelection/InstrForest.cpp')
-rw-r--r-- | lib/Target/SparcV9/InstrSelection/InstrForest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp index eb9e7f9..91956f5 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp @@ -67,11 +67,10 @@ InstructionNode::InstructionNode(Instruction* I) { opLabel = AllocaN; // Alloca(ptr, N) operation } - else if ((opLabel == Instruction::Load || - opLabel == Instruction::GetElementPtr) && - cast<MemAccessInst>(I)->hasIndices()) + else if (opLabel == Instruction::GetElementPtr && + cast<GetElementPtrInst>(I)->hasIndices()) { - opLabel = opLabel + 100; // load/getElem with index vector + opLabel = opLabel + 100; // getElem with index vector } else if (opLabel == Instruction::Xor && BinaryOperator::isNot(I)) |