File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,8 @@ static inline unsigned getVLOpNum(const MCInstrDesc &Desc) {
200
200
return Desc.getNumOperands () - Offset;
201
201
}
202
202
203
- static inline unsigned getTailExpandUseRegNo (const FeatureBitset &FeatureBits) {
203
+ static inline MCRegister
204
+ getTailExpandUseRegNo (const FeatureBitset &FeatureBits) {
204
205
// For Zicfilp, PseudoTAIL should be expanded to a software guarded branch.
205
206
// It means to use t2(x7) as rs1 of JALR to expand PseudoTAIL.
206
207
return FeatureBits[RISCV::FeatureStdExtZicfilp] ? RISCV::X7 : RISCV::X6;
Original file line number Diff line number Diff line change @@ -2984,13 +2984,13 @@ static bool isCandidatePatchable(const MachineBasicBlock &MBB) {
2984
2984
}
2985
2985
2986
2986
static bool isMIReadsReg (const MachineInstr &MI, const TargetRegisterInfo *TRI,
2987
- unsigned RegNo) {
2987
+ MCRegister RegNo) {
2988
2988
return MI.readsRegister (RegNo, TRI) ||
2989
2989
MI.getDesc ().hasImplicitUseOfPhysReg (RegNo);
2990
2990
}
2991
2991
2992
2992
static bool isMIModifiesReg (const MachineInstr &MI,
2993
- const TargetRegisterInfo *TRI, unsigned RegNo) {
2993
+ const TargetRegisterInfo *TRI, MCRegister RegNo) {
2994
2994
return MI.modifiesRegister (RegNo, TRI) ||
2995
2995
MI.getDesc ().hasImplicitDefOfPhysReg (RegNo);
2996
2996
}
@@ -3005,7 +3005,7 @@ static bool cannotInsertTailCall(const MachineBasicBlock &MBB) {
3005
3005
// that can be used for expanding PseudoTAIL instruction,
3006
3006
// then we cannot insert tail call.
3007
3007
const TargetSubtargetInfo &STI = MBB.getParent ()->getSubtarget ();
3008
- unsigned TailExpandUseRegNo =
3008
+ MCRegister TailExpandUseRegNo =
3009
3009
RISCVII::getTailExpandUseRegNo (STI.getFeatureBits ());
3010
3010
for (const MachineInstr &MI : MBB) {
3011
3011
if (isMIReadsReg (MI, STI.getRegisterInfo (), TailExpandUseRegNo))
You can’t perform that action at this time.
0 commit comments