diff options
author | Pete Cooper <peter_cooper@apple.com> | 2014-03-14 02:28:05 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2014-03-14 02:28:05 +0000 |
commit | 757ed6daf4c7720cddebdc3f502f7ecb110ded72 (patch) | |
tree | 7509106738201efa447e897ceb47fc5abd684148 /lib/CodeGen/InlineSpiller.cpp | |
parent | d63289bc9a905200ad1e4be1821c792b0a2ff971 (diff) | |
download | llvm-757ed6daf4c7720cddebdc3f502f7ecb110ded72.tar.gz llvm-757ed6daf4c7720cddebdc3f502f7ecb110ded72.tar.bz2 llvm-757ed6daf4c7720cddebdc3f502f7ecb110ded72.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InlineSpiller.cpp')
-rw-r--r-- | lib/CodeGen/InlineSpiller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp index 64211c8d31..5bf7b11286 100644 --- a/lib/CodeGen/InlineSpiller.cpp +++ b/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()) { |