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

Karl-Johan Karlsson via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 02:39:30 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/D20805

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

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


More information about the llvm-commits mailing list