diff options
author | Heejin Ahn <aheejin@gmail.com> | 2023-03-24 11:49:08 -0700 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2023-03-29 12:50:39 -0700 |
commit | a4e32ae4cd97ce460e8695281f60ddb10cf510b2 (patch) | |
tree | cef03acb53a3cebdb4d54d81de4e83f3afa1db8a /llvm/lib/CodeGen/DFAPacketizer.cpp | |
parent | 5a55c9507b6961ba4fb6acbeb2ffa1dba0d13969 (diff) | |
download | llvm-a4e32ae4cd97ce460e8695281f60ddb10cf510b2.zip llvm-a4e32ae4cd97ce460e8695281f60ddb10cf510b2.tar.gz llvm-a4e32ae4cd97ce460e8695281f60ddb10cf510b2.tar.bz2 |
[WebAssembly] Do nothing when sinking to same place
In `DebugValueManager`, if a `Def` is requested to be sunk to the same
place (i.e., `Insert` is right after `Def`, not counting `DBG_VALUE`s)
currently we still do the sink. This can result in unnecessary creation
of `DBG_VALUE $noreg`. See comments for details. This CL detects this
case and do nothing and return, so we don't end up creating unnecessary
undef `DBG_VALUE`s.
Reviewed By: dschuff
Differential Revision: https://reviews.llvm.org/D146860
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions