Re-reapply: Recover debug intrinsics when killing duplicated/empty blocks
authorstozer <stephen.tozer@sony.com>
Wed, 12 Feb 2020 13:41:18 +0000 (13:41 +0000)
committerstozer <stephen.tozer@sony.com>
Wed, 12 Feb 2020 14:36:30 +0000 (14:36 +0000)
commit61b35e4111160fe834a00c33d040e01150b576ac
tree976c3e80e7e9e7ba33a30100461ec5cf9c9e46c6
parentfa61e200e53aaa929276abd76482a15c7a9638b7
Re-reapply: Recover debug intrinsics when killing duplicated/empty blocks

This reverts commit 636c93ed11a5f98b5c3ff88241460d61cb7785bb.

The original patch caused build failures on TSan buildbots. Commit 6ded69f294a9
fixes this issue by reducing the rate at which empty debug intrinsics
propagate, reducing the memory footprint and preventing a fatal spike.
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Transforms/Utils/Local.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/hoist-dbgvalue-else.ll [new file with mode: 0644]
llvm/test/Transforms/SimplifyCFG/hoist-dbgvalue-empty.ll [new file with mode: 0644]