[PATCH] D151125: [WebAssembly] Undef invalid DBG_VALUEs after RegColoring

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 22 10:48:08 PDT 2023


aheejin created this revision.
aheejin added a reviewer: dschuff.
Herald added subscribers: pmatos, asb, wingo, ecnelises, mgrang, sunfish, hiraditya, jgravelle-google, sbc100.
Herald added a project: All.
aheejin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

After register coalescing, some `DBG_VALUE`s can have incorrect info.
For example, if a `DBG_VALUE` has a register operand `%0`, but it
resides in a live range of `%1`, it has incorrect info after `%0` and
`%1` are coalesced. See the comments for more details.

This does not have meaningful changes on our variable debug info
coverage or compilation time, which is a good news.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151125

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyRegColoring.cpp
  llvm/test/DebugInfo/WebAssembly/dbg-value-reg-coloring.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151125.524390.patch
Type: text/x-patch
Size: 15104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230522/7f14d658/attachment.bin>


More information about the llvm-commits mailing list