[PATCH] D149146: [TailDuplicator] Don't constrain register classes due to debug instructions

Mikael Holmén via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 04:56:12 PDT 2023


uabelho created this revision.
uabelho added reviewers: kparzysz, foad, arsenm.
Herald added subscribers: StephenFan, bjope, hiraditya.
Herald added a project: All.
uabelho requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

If cloning a DBG_VALUE instruction, register uses in that instruction could
lead to constraining of a virtual register that would not happen if the
DBG_VALUE was not present at all. This lead to different code with/without
debug info.

Now we only do that register class constraining if we dealing with a non
debug instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149146

Files:
  llvm/lib/CodeGen/TailDuplicator.cpp
  llvm/test/CodeGen/AArch64/tail-duplicate-debug-variance.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149146.516752.patch
Type: text/x-patch
Size: 4371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230425/2a531fc3/attachment.bin>


More information about the llvm-commits mailing list