mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
WebAssembly: fix build
More API churn, experimental target got sad. llvm-svn: 262179
This commit is contained in:
parent
c4dc2f4ba2
commit
b69a1061f6
@ -66,7 +66,7 @@ static float computeWeight(const MachineRegisterInfo *MRI,
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ static MachineInstr *MoveForSingleUse(unsigned Reg, MachineInstr *Def,
|
||||
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 *MoveAndTeeForMultiUse(
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user