[PATCH] D51919: [CallSiteSplitting] Add debug location to created PHI nodes.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 11 02:53:43 PDT 2018


fhahn created this revision.
fhahn added reviewers: junbuml, gbedwell, vsk.
fhahn added a project: debug-info.

There are 2 cases when we create PHI nodes:

- For the result of the call that was duplicated in the split blocks. Those PHI nodes should have the debug location of the call.
- For values produced before the call. Those instructions need to be duplicated in the split blocks and the PHI nodes should have the debug locations of those instructions.

Fixes PR37962.


https://reviews.llvm.org/D51919

Files:
  lib/Transforms/Scalar/CallSiteSplitting.cpp
  test/Transforms/CallSiteSplitting/callsite-split-preserve-debug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51919.164829.patch
Type: text/x-patch
Size: 5326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180911/900948e8/attachment.bin>


More information about the llvm-commits mailing list