Revert r203883 (which was more of a bandaid) and fix the real underlying
issue in that the new MachineRegisterInfo bundle iterators didn't dereference to the START of the bundle, while the old skipBundle() method did. llvm-svn: 203890
This commit is contained in:
parent
516273ba99
commit
ec5d480329
|
@ -856,11 +856,13 @@ public:
|
|||
// Retrieve a reference to the current operand.
|
||||
MachineInstr &operator*() const {
|
||||
assert(Op && "Cannot dereference end iterator!");
|
||||
if (ByBundle) return *(getBundleStart(Op->getParent()));
|
||||
return *Op->getParent();
|
||||
}
|
||||
|
||||
MachineInstr *operator->() const {
|
||||
assert(Op && "Cannot dereference end iterator!");
|
||||
if (ByBundle) return getBundleStart(Op->getParent());
|
||||
return Op->getParent();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1196,7 +1196,7 @@ void InlineSpiller::spillAroundUses(unsigned Reg) {
|
|||
for (MachineRegisterInfo::reg_bundle_iterator
|
||||
RegI = MRI.reg_bundle_begin(Reg), E = MRI.reg_bundle_end();
|
||||
RegI != E; ) {
|
||||
MachineInstr *MI = getBundleStart(&*(RegI++));
|
||||
MachineInstr *MI = &*(RegI++);
|
||||
|
||||
// Debug values are not allowed to affect codegen.
|
||||
if (MI->isDebugValue()) {
|
||||
|
|
Loading…
Reference in New Issue