OSDN Git Service

[GVN+LICM] Use line 0 locations for better crash attribution
authorVedant Kumar <vsk@apple.com>
Fri, 19 Apr 2019 22:36:40 +0000 (22:36 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 19 Apr 2019 22:36:40 +0000 (22:36 +0000)
commit116c7f3025e46d14d360dfb632ac71fa4a95a26a
treee486b43d47b2df98ed91aa7634f307c37889b558
parentb0b325969cb367f9803b14eb6623c5b280023a86
[GVN+LICM] Use line 0 locations for better crash attribution

This is a follow-up to r291037+r291258, which used null debug locations
to prevent jumpy line tables.

Using line 0 locations achieves the same effect, but works better for
crash attribution because it preserves the right inline scope.

Differential Revision: https://reviews.llvm.org/D60913

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358791 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Scalar/LICM.cpp
test/DebugInfo/Generic/licm-hoist-debug-loc.ll
test/Transforms/GVN/PRE/phi-translate.ll