[llvm] CodeGen: Fix double counting bundles in inst size verification (PR #191460)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 12:48:15 PDT 2026
arsenm wrote:
> https://github.com/llvm/llvm-project/blob/d5a8af542ee8afb16e7ac42277953e74e59f9bd7/llvm/lib/Target/Mips/MipsBranchExpansion.cpp#L300-L302
>
> would end up double-counting the size of bundles, right?
Assuming the mips implementation correctly handled bundles, it wouldn't double count. the instrs() iterator should visit the BUNDLE header, followed by the next unbundled instruction
https://github.com/llvm/llvm-project/pull/191460
More information about the llvm-commits
mailing list