http://llvm.org/bugs/show_bug.cgi?id=17136
Bug ID: 17136
Summary: ARMLoadStoreOptimizer: MemOps selected incorrectly
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
I debugged a mis-scheduled code and found that it was caused by
ARMLoadStoreOptimizer.
In ARMPreAllocLoadStoreOpt::RescheduleOps():
The loop below is supposed to insert NumMove number of ops into MemOps and
MemRegs from top of Ops but now it's inserting
for (int i = NumMove-1; i >= 0; --i) {
MemOps.insert(Ops[i]);
MemRegs.insert(Ops[i]->getOperand(0).getReg());
}
It should be
for (int i = NumMove-1; i >= 0; --i) {
MemOps.insert(Ops[Ops.size() - 1 - i]);
MemRegs.insert(Ops[Ops.size() - 1 - i]->getOperand(0).getReg());
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs