[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)
commit282b26ec4d988fe300cda4d8f273a42cf4e0923d
tree6f2c114275bcb5fd8137c3bdd5a3191f9df5b352
parenta9c2ba3fffa575cd6eeb81cdecd461d2e9b1c09b
[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

llvm-svn: 358791
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/lib/Transforms/Scalar/LICM.cpp
llvm/test/DebugInfo/Generic/licm-hoist-debug-loc.ll
llvm/test/Transforms/GVN/PRE/phi-translate.ll