[llvm] Reland: CodeGen: Record MMOs in finalizeBundle (PR #166689)
James Nagurne via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 7 14:11:51 PST 2026
Nicolai =?utf-8?q?Hähnle?= <nicolai.haehnle at amd.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/166689 at github.com>
DragonDisciple wrote:
Hi @nhaehnle
Our team maintains a backend which heavily utilizes bundled instructions. This commit has caused a backend error that, since I'm not seeing any conversation here, must be unique to something we're doing.
Prior to your change, LiveDebugValues would ignore bundles with regard to extending the variable location ranges.
With your change, our backend is now identifying BUNDLEs as being/containing spills, but is attempting an illegal operation that causes the abort.
Specifically, consider the pseudo:
```
BUNDLE implicit killed $r0 ... :: (store (s32) into %stack.1) {
st $r0 -> %stack.1 killed $r0, ... :: (store (s32) into %stack.1)
branch %bb.xyz
}
```
This bundled instruction spills $r0 at the same time that it branches to %bb.xyz. That is, this BUNDLE is a terminator.
With your update, LiveDebugValues now identifies the BUNDLE itself as a spill and attempts to insert a new DBG_VALUE after the instruction. This triggers an assertion that catches the illegal insertion of non-terminators after terminators.
Can you talk to this error at all? Is it 'strange' to put terminators and non-terminators in parallel/bundles?
https://github.com/llvm/llvm-project/pull/166689
More information about the llvm-commits
mailing list