[llvm] [VirtRegMap] Coarsen lane mask when `getCoveringSubRegIndexes` fails (PR #201550)

Igor Wodiany via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 08:59:30 PDT 2026


IgWod wrote:

I've updated the code (but not the title or the description yet) with a different approach. I've realized by my initial attempt was incorrect, so this tries a different angle. It removes any invalid sub-registers from `LiveOutUndefLanes`, so `getCoveringSubRegIndexes` cannot fail for that reason. I don't think there are cases where we would need to cover invalid sub-registers, so this should be correct. Ideally we'd like to fix the root cause, but considering that this is really a corner cases and it will unblock #197467, I hope this is an acceptable compromise.

https://github.com/llvm/llvm-project/pull/201550


More information about the llvm-commits mailing list