[Debug-info][InstrRef] Avoid an unnecessary map ordering
authorJeremy Morse <jeremy.morse@sony.com>
Fri, 9 Jul 2021 14:32:30 +0000 (15:32 +0100)
committerJeremy Morse <jeremy.morse@sony.com>
Fri, 9 Jul 2021 14:43:13 +0000 (15:43 +0100)
commitf551fb96c7fbe38628f049bfe0e48a6943ee341f
tree6515df9bb92fbae12934253c93f36115f8d96fc6
parentffccf96e90d6b726188c3ddbe5142f06762567ad
[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
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/lib/CodeGen/MachineFunction.cpp