1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/Instrumentation/AddressSanitizer
Vedant Kumar e8e55ea37a [Local] Do not move around dbg.declares during replaceDbgDeclare
replaceDbgDeclare is used to update the descriptions of stack variables
when they are moved (e.g. by ASan or SafeStack). A side effect of
replaceDbgDeclare is that it moves dbg.declares around in the
instruction stream (typically by hoisting them into the entry block).
This behavior was introduced in llvm/r227544 to fix an assertion failure
(llvm.org/PR22386), but no longer appears to be necessary.

Hoisting a dbg.declare generally does not create problems. Usually,
dbg.declare either describes an argument or an alloca in the entry
block, and backends have special handling to emit locations for these.
In optimized builds, LowerDbgDeclare places dbg.values in the right
spots regardless of where the dbg.declare is. And no one uses
replaceDbgDeclare to handle things like VLAs.

However, there doesn't seem to be a positive case for moving
dbg.declares around anymore, and this reordering can get in the way of
understanding other bugs. I propose getting rid of it.

Testing: stage2 RelWithDebInfo sanitized build, check-llvm

rdar://59397340

Differential Revision: https://reviews.llvm.org/D74517
2020-02-13 14:35:02 -08:00
..
X86
adaptive_global_redzones.ll
asan_address_space_attr.ll
asan-detect-invalid-pointer-pair.ll
asan-masked-load-store.ll
asan-vs-gvn.ll
basic-msvc64.ll
basic-myriad.ll
basic.ll
debug_info_noninstrumented_alloca2.ll
debug_info_noninstrumented_alloca.ll
debug_info.ll
debug-info-alloca.ll
debug-info-global-var.ll
do-not-instrument-globals-darwin.ll
do-not-instrument-globals-linux.ll
do-not-instrument-internal-globals.ll
do-not-instrument-profiling-globals.ll
do-not-instrument-promotable-allocas.ll
do-not-instrument-sanitizers.ll
do-not-touch-comdat-global.ll
do-not-touch-odr-global.ll
do-not-touch-threadlocal.ll
dynamic-shadow-darwin.ll
experiment-call.ll
experiment.ll
force-dynamic-shadow.ll
freebsd.ll
global_addrspace.ll
global_cstring_darwin.ll
global_lto_merge.ll
global_metadata_array.ll
global_metadata_bitcasts.ll
global_metadata_darwin.ll
global_metadata_external_comdat.ll
global_metadata_windows.ll
global_metadata.ll
instrument_global.ll
instrument_initializer_metadata.ll
instrument_load_then_store.ll
instrument-dynamic-allocas.ll
instrument-no-return.ll
instrument-stack.ll
instrumentation-with-call-threshold.ll
keep_going.ll
lifetime-throw.ll
lifetime-uar-uas.ll
lifetime.ll
local_alias.ll
local_stack_base.ll
localescape.ll
no-globals.ll
odr-check-ignore.ll
ps4.ll
scale-offset.ll
stack_dynamic_alloca.ll
stack_layout.ll
stack-poisoning-and-lifetime-be.ll
stack-poisoning-and-lifetime.ll
stack-poisoning-byval-args.ll
stack-poisoning.ll
str-nobuiltin.ll
test64.ll
twice.ll
ubsan.ll
version-mismatch-check.ll
win-sorted-sections.ll
win-string-literal.ll
with-ifunc.ll