diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-06 18:04:17 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-06 18:04:17 +0000 |
commit | b85f5388a969706f517723bcac94f7af4b2a1870 (patch) | |
tree | 020229f24592ef39d0cda0aef3cb85203e0b4dc8 /lib/CodeGen/SplitKit.cpp | |
parent | 775aa22da28c0ded619308fa71a9be2b16bcd19b (diff) |
Fix swapped COPY operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | lib/CodeGen/SplitKit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index 70cfc065a3..fdc448d1e8 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/lib/CodeGen/SplitKit.cpp @@ -458,8 +458,8 @@ void SplitEditor::leaveIntvAtTop(MachineBasicBlock &MBB) { // Insert the COPY instruction. MachineInstr *MI = BuildMI(MBB, MBB.begin(), DebugLoc(), - tii_.get(TargetOpcode::COPY), openli_->reg) - .addReg(dupli_->reg); + tii_.get(TargetOpcode::COPY), dupli_->reg) + .addReg(openli_->reg); SlotIndex Idx = lis_.InsertMachineInstrInMaps(MI).getDefIndex(); // Adjust dupli and openli values. |