[llvm] [Mips] Fix mfhi/mflo hazard miscompilation about div and mult (PR #91449)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 14 00:18:35 PDT 2024
================
@@ -743,6 +743,12 @@ bool MipsDelaySlotFiller::searchRange(MachineBasicBlock &MBB, IterTy Begin,
bool InMicroMipsMode = STI.inMicroMipsMode();
const MipsInstrInfo *TII = STI.getInstrInfo();
unsigned Opcode = (*Slot).getOpcode();
+
+ if ((CurrI->getOpcode() == Mips::MFLO ||
----------------
yingopq wrote:
Updated.
https://github.com/llvm/llvm-project/pull/91449
More information about the llvm-commits
mailing list