[PATCH] D24797: Only insert debug nodes after a phi if there is a valid insertion point

Keith Walker via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 07:04:58 PDT 2016


keith.walker.arm created this revision.
keith.walker.arm added reviewers: llvm-commits, hans, majnemer, aprantl.

When adding debug information to a lowered phi node in mem2reg
check that we have a valid insertion point after the phi for adding
the debug information.

This change addresses the issue in pr30468 where a lowered phi was
added before a catchswitch and no debug information should be added
after the phi in this case.


https://reviews.llvm.org/D24797

Files:
  lib/Transforms/Utils/Local.cpp
  test/Transforms/Mem2Reg/PhiCatchSwitchAndDebug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24797.72038.patch
Type: text/x-patch
Size: 8795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160921/d70e5c08/attachment.bin>


More information about the llvm-commits mailing list