[all-commits] [llvm/llvm-project] 4a2cb0: [DebugInfo][InstrRef][NFC] Refactor ahead of furth...
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Mon Jan 31 08:46:12 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a2cb01370710a6807e8a18416b5c75f0f73993c
https://github.com/llvm/llvm-project/commit/4a2cb01370710a6807e8a18416b5c75f0f73993c
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2022-01-31 (Mon, 31 Jan 2022)
Changed paths:
M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
Log Message:
-----------
[DebugInfo][InstrRef][NFC] Refactor ahead of further optimisations
This patch shuffles some functions around so that some blocks of code can
be reused. In particular,
* Move the determination of "which blocks are in scope" to its own
function, as it's non-trivial to solve. Delete the "InScopeBlocks"
collection too, which nothing reads from.
* Split transfer emission (i.e., installing DBG_VALUEs into blocks) into
its own function.
* Name some useful types.
* Rename "ScopeToBlocks" to "ScopeToAssignBlocks", as that's what the
collection contains, blocks where assignments happen.
Differential Revision: https://reviews.llvm.org/D118454
More information about the All-commits
mailing list