[PATCH] D29578: Propagate debug info for Phi node in SSAUpdater

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 02:12:34 PST 2017


samparker created this revision.
Herald added a subscriber: aprantl.

Phi nodes are created in the SSAUpdater, however debug info is not updated causing incorrect values after transformations like loop rotation. This patch inserts a new call to dbg.value for each variable operand of the phi that has debug metadata attached.


https://reviews.llvm.org/D29578

Files:
  include/llvm/Transforms/Utils/SSAUpdaterImpl.h
  lib/CodeGen/MachineSSAUpdater.cpp
  lib/Transforms/Utils/SSAUpdater.cpp
  test/Transforms/Util/phi-dbgvalue.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29578.87202.patch
Type: text/x-patch
Size: 8505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170206/0e9c0098/attachment.bin>


More information about the llvm-commits mailing list