[llvm] r262179 - WebAssembly: fix build

JF Bastien via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 28 07:33:54 PST 2016


Author: jfb
Date: Sun Feb 28 09:33:53 2016
New Revision: 262179

URL: http://llvm.org/viewvc/llvm-project?rev=262179&view=rev
Log:
WebAssembly: fix build

More API churn, experimental target got sad.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegColoring.cpp
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegColoring.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegColoring.cpp?rev=262179&r1=262178&r2=262179&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegColoring.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegColoring.cpp Sun Feb 28 09:33:53 2016
@@ -66,7 +66,7 @@ static float computeWeight(const Machine
   float weight = 0.0f;
   for (MachineOperand &MO : MRI->reg_nodbg_operands(VReg))
     weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI,
-                                            MO.getParent());
+                                            *MO.getParent());
   return weight;
 }
 

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp?rev=262179&r1=262178&r2=262179&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp Sun Feb 28 09:33:53 2016
@@ -188,7 +188,7 @@ static MachineInstr *MoveForSingleUse(un
                                       MachineInstr *Insert, LiveIntervals &LIS,
                                       WebAssemblyFunctionInfo &MFI) {
   MBB.splice(Insert, &MBB, Def);
-  LIS.handleMove(Def);
+  LIS.handleMove(*Def);
   MFI.stackifyVReg(Reg);
   ImposeStackOrdering(Def);
   return Def;
@@ -251,7 +251,7 @@ static MachineInstr *MoveAndTeeForMultiU
     MachineInstr *Insert, LiveIntervals &LIS, WebAssemblyFunctionInfo &MFI,
     MachineRegisterInfo &MRI, const WebAssemblyInstrInfo *TII) {
   MBB.splice(Insert, &MBB, Def);
-  LIS.handleMove(Def);
+  LIS.handleMove(*Def);
   const auto *RegClass = MRI.getRegClass(Reg);
   unsigned NewReg = MRI.createVirtualRegister(RegClass);
   unsigned TeeReg = MRI.createVirtualRegister(RegClass);




More information about the llvm-commits mailing list