[PATCH] D20807: PR27938: Don't remove valid DebugLoc in Scalarizer

Karl-Johan Karlsson via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 03:51:07 PDT 2016


Ka-Ka created this revision.
Ka-Ka added a reviewer: rsandifo.
Ka-Ka added a subscriber: llvm-commits.

Added checks to make sure the Scalarizer::transferMetadata() don't
remove valid debug location's from instructions. This is important as
the verifier pass require that e.g. inlinable callsites have a valid
debug location.
    
https://llvm.org/bugs/show_bug.cgi?id=27938


http://reviews.llvm.org/D20807

Files:
  lib/Transforms/Scalar/Scalarizer.cpp
  test/Transforms/Scalarizer/dbgloc-bug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20807.59037.patch
Type: text/x-patch
Size: 4713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160531/40185437/attachment.bin>


More information about the llvm-commits mailing list