1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00
llvm-mirror/include/llvm/Transforms
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
..
AggressiveInstCombine Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InstCombine [InstCombine] Rename worklist methods; NFC 2020-02-03 18:56:51 +01:00
Instrumentation [profile] Support counter relocation at runtime 2020-01-17 15:02:23 -08:00
IPO [Attributor] Use fine-grained liveness in all helpers 2020-02-12 17:36:38 -06:00
Scalar [NFC] Remove extra headers included in Loop Unroll and LoopUnrollAndJam files 2020-02-12 17:57:56 +00:00
Utils [Local] Do not move around dbg.declares during replaceDbgDeclare 2020-02-13 14:35:02 -08:00
Vectorize [VectorCombine] new IR transform pass for partial vector ops 2020-02-09 10:04:41 -05:00
CFGuard.h Add Windows Control Flow Guard checks (/guard:cf). 2019-10-28 15:19:39 +00:00
Coroutines.h [Coroutines] Rename "legacy" passes (NFC) 2020-01-01 21:41:16 -05:00
Instrumentation.h Reland the "[NewPM] Port Sancov" patch from rL365838. No functional 2019-07-25 20:53:15 +00:00
IPO.h [OpenMP] Introduce the OpenMPOpt transformation pass 2020-02-08 14:47:03 -06:00
ObjCARC.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Scalar.h [BasicBlockUtils] Add utility to remove redundant dbg.value instrs 2019-12-16 11:41:21 +01:00
Utils.h [SVFS] Inject TLI Mappings in VFABI attribute. 2019-11-15 18:42:56 +00:00
Vectorize.h [VectorCombine] new IR transform pass for partial vector ops 2020-02-09 10:04:41 -05:00