OSDN Git Service

Fix DebugLoc propagation for unreachable LoadInst
authorWeiming Zhao <weimingz@codeaurora.org>
Wed, 19 Jul 2017 01:27:24 +0000 (01:27 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Wed, 19 Jul 2017 01:27:24 +0000 (01:27 +0000)
commit03e0349c1502abec3773e634065e07602412386a
tree15a75ad8c6fcb7f1915f07467b7869ebc246251f
parent9563b5a5e126f25d1966ac92a07bf033de01bc81
Fix DebugLoc propagation for unreachable LoadInst

Summary: Currently, when GVN creates a load and when InstCombine creates a new store for unreachable Load, the DebugLoc info gets lost.

Reviewers: dberlin, davide, aprantl

Reviewed By: aprantl

Subscribers: davide, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308404 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/PRE/2017-06-28-pre-load-dbgloc.ll [new file with mode: 0644]
test/Transforms/GVN/PRE/phi-translate.ll