summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InlineSpiller.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2014-03-14 02:28:05 +0000
committerPete Cooper <peter_cooper@apple.com>2014-03-14 02:28:05 +0000
commit7360280e5cc2f03a049425e190f2d6d2d3676558 (patch)
tree3c64251586c3a7a3acedb06704f3f7d5ab196d7f /llvm/lib/CodeGen/InlineSpiller.cpp
parent68ccbe01b0fdb6b2ce3893d851ce225cd869cf0b (diff)
downloadbcm5719-llvm-7360280e5cc2f03a049425e190f2d6d2d3676558.tar.gz
bcm5719-llvm-7360280e5cc2f03a049425e190f2d6d2d3676558.zip
Fix issue with r203865. The old behaviour would get a MachineOperand then find the MI for the bundle the MI was in. The new behaviour was failing to get the parent bundle and instead just used the MI from the MachineOperand
llvm-svn: 203883
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
-rw-r--r--llvm/lib/CodeGen/InlineSpiller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp
index 64211c8d31b..5bf7b112869 100644
--- a/llvm/lib/CodeGen/InlineSpiller.cpp
+++ b/llvm/lib/CodeGen/InlineSpiller.cpp
@@ -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 = &*(RegI++);
+ MachineInstr *MI = getBundleStart(&*(RegI++));
// Debug values are not allowed to affect codegen.
if (MI->isDebugValue()) {
OpenPOWER on IntegriCloud