[all-commits] [llvm/llvm-project] f551fb: [Debug-info][InstrRef] Avoid an unnecessary map or...
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Fri Jul 9 07:53:31 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f551fb96c7fbe38628f049bfe0e48a6943ee341f
https://github.com/llvm/llvm-project/commit/f551fb96c7fbe38628f049bfe0e48a6943ee341f
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2021-07-09 (Fri, 09 Jul 2021)
Changed paths:
M llvm/include/llvm/CodeGen/MachineFunction.h
M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
M llvm/lib/CodeGen/MIRPrinter.cpp
M llvm/lib/CodeGen/MachineFunction.cpp
Log Message:
-----------
[Debug-info][InstrRef] Avoid an unnecessary map ordering
We keep a record of substitutions between debug value numbers post-isel,
however we never actually look them up until the end of compilation. As a
result, there's nothing gained by the collection being a std::map. This
patch downgrades it to being a vector, that's then sorted at the end of
compilation in LiveDebugValues.
Differential Revision: https://reviews.llvm.org/D105029
More information about the All-commits
mailing list