[llvm] [Mips] When emit instruction, ignore JUMP_TABLE_DEBUG_INFO (PR #139830)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 22:56:54 PDT 2025
================
@@ -694,8 +694,10 @@ bool MipsDelaySlotFiller::searchRange(MachineBasicBlock &MBB, IterTy Begin,
IterTy CurrI = I;
++I;
LLVM_DEBUG(dbgs() << DEBUG_TYPE ": checking instruction: "; CurrI->dump());
- // skip debug value
- if (CurrI->isDebugInstr()) {
+ // Skip debug value.
+ // Instruction TargetOpcode::JUMP_TABLE_DEBUG_INFO is only used to note
+ // jump table debug info, we did not need to emit it.
----------------
s-barannikov wrote:
The last part of the comment is misleading, otherwise LGTM.
https://github.com/llvm/llvm-project/pull/139830
More information about the llvm-commits
mailing list