Skip to content

Commit 540f230

Browse files
committed
[Mips] Fix expsensive_check test failure when x86 run readcyclecounter.ll
Fix pr llvm#127553
1 parent 9f75b66 commit 540f230

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/Mips/MipsRegisterInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ getReservedRegs(const MachineFunction &MF) const {
205205

206206
// Reserve hardware registers.
207207
Reserved.set(Mips::HWR29);
208+
Reserved.set(Mips::HWR2);
208209

209210
// Reserve DSP control register.
210211
Reserved.set(Mips::DSPPos);

0 commit comments

Comments
 (0)