diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-06-18 10:32:32 -0400 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-06-24 10:52:58 -0400 |
commit | c5d240093b60729829cb55823448e30bdfc69142 (patch) | |
tree | 990d87eeabf968cecf580c4896dec028842a6c40 /llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | |
parent | 457db4036a14635c6bc6875a24e17c502a30f6e8 (diff) | |
download | llvm-c5d240093b60729829cb55823448e30bdfc69142.zip llvm-c5d240093b60729829cb55823448e30bdfc69142.tar.gz llvm-c5d240093b60729829cb55823448e30bdfc69142.tar.bz2 |
WebAssembly: Don't store MachineFunction in MachineFunctionInfo
Soon it will be disallowed to depend on MachineFunction state in the
constructor. This was only being used to get the MachineRegisterInfo
for an assert, which I'm not sure is necessarily worth it. I would
think any missing defs would be caught by the verifier later instead.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp index 160bc74..55925bc 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp @@ -266,7 +266,7 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) { BuildMI(MBB, &MI, MI.getDebugLoc(), TII->get(Opc), NewReg) .addImm(LocalId); MI.getOperand(2).setReg(NewReg); - MFI.stackifyVReg(NewReg); + MFI.stackifyVReg(MRI, NewReg); } // Replace the TEE with a LOCAL_TEE. @@ -316,7 +316,7 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) { // yet. Def.setReg(NewReg); Def.setIsDead(false); - MFI.stackifyVReg(NewReg); + MFI.stackifyVReg(MRI, NewReg); Changed = true; } } @@ -368,7 +368,7 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) { BuildMI(MBB, InsertPt, MI.getDebugLoc(), TII->get(Opc), NewReg) .addImm(LocalId); MO.setReg(NewReg); - MFI.stackifyVReg(NewReg); + MFI.stackifyVReg(MRI, NewReg); Changed = true; } |