Skip to content

Commit 68662a9

Browse files
vladimirradosavljevicakiramenai
authored andcommitted
[EVM] Add renamable bit to copyPhysReg
Signed-off-by: Vladimir Radosavljevic <[email protected]>
1 parent 3ee7ab5 commit 68662a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llvm/lib/Target/EVM/EVMInstrInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ bool EVMInstrInfo::isReallyTriviallyReMaterializable(
3636
void EVMInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
3737
MachineBasicBlock::iterator I,
3838
const DebugLoc &DL, MCRegister DestReg,
39-
MCRegister SrcReg, bool KillSrc) const {
39+
MCRegister SrcReg, bool KillSrc,
40+
bool RenamableDest, bool RenamableSrc) const {
4041
// This method is called by post-RA expansion, which expects only
4142
// phys registers to exist. However we expect only virtual here.
4243
assert(Register::isVirtualRegister(DestReg) &&

llvm/lib/Target/EVM/EVMInstrInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class EVMInstrInfo final : public EVMGenInstrInfo {
4444

4545
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
4646
const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg,
47-
bool KillSrc) const override;
47+
bool KillSrc, bool RenamableDest = false,
48+
bool RenamableSrc = false) const override;
4849

4950
bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
5051
MachineBasicBlock *&FBB,

0 commit comments

Comments
 (0)