[llvm] [SPARC] Prevent meta instructions from being inserted into delay slots (PR #161111)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 3 00:08:49 PDT 2025
================
@@ -206,8 +206,8 @@ Filler::findDelayInstr(MachineBasicBlock &MBB,
if (!done)
--I;
- // skip debug instruction
- if (I->isDebugInstr())
+ // Skip debug and generic instructions.
+ if (I->isDebugInstr() || (I->getOpcode() <= TargetOpcode::GENERIC_OP_END))
----------------
koachan wrote:
This works, but I have a question:
Are debug instructions considered meta too? If so then I'll remove the redundant debug check too.
https://github.com/llvm/llvm-project/pull/161111
More information about the llvm-commits
mailing list