Integer materialization needed the same thinko change.
authorEric Christopher <echristo@apple.com>
Tue, 28 Sep 2010 21:55:34 +0000 (21:55 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 28 Sep 2010 21:55:34 +0000 (21:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114994 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index 639a2051d04f9c35033ab0818ba9597654c9629f..6665704e290f8c65762a326e1c7613d5917bfbd3 100644 (file)
@@ -417,13 +417,13 @@ unsigned ARMFastISel::ARMMaterializeInt(const Constant *C) {
   
   if (isThumb)
     AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
-                            TII.get(ARM::t2LDRpci))
-                    .addReg(DestReg).addConstantPoolIndex(Idx));
+                            TII.get(ARM::t2LDRpci), DestReg)
+                    .addConstantPoolIndex(Idx));
   else
     // The extra reg and immediate are for addrmode2.
     AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
-                            TII.get(ARM::LDRcp))
-                            .addReg(DestReg).addConstantPoolIndex(Idx)
+                            TII.get(ARM::LDRcp), DestReg)
+                    .addConstantPoolIndex(Idx)
                     .addReg(0).addImm(0));
 
   return DestReg;