[llvm] [Mips] Fix mfhi/mflo hazard miscompilation about div and mult (PR #91449)
    YunQiang Su via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Sep  9 17:27:26 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 ||
----------------
wzssyqa wrote:
No MFHI here?
https://github.com/llvm/llvm-project/pull/91449
    
    
More information about the llvm-commits
mailing list