aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-08-06 18:04:17 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-08-06 18:04:17 +0000
commit9340e5a92d795173afb17df23240d28665b5cfe4 (patch)
tree020229f24592ef39d0cda0aef3cb85203e0b4dc8 /lib
parentd53f768299811e2ee83916689dce99c6ddf7c79b (diff)
downloadexternal_llvm-9340e5a92d795173afb17df23240d28665b5cfe4.tar.gz
external_llvm-9340e5a92d795173afb17df23240d28665b5cfe4.tar.bz2
external_llvm-9340e5a92d795173afb17df23240d28665b5cfe4.zip
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')
-rw-r--r--lib/CodeGen/SplitKit.cpp4
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.