[PATCH] D147532: [MachineLateInstrsCleanup] Improve compile time for huge functions.
Jonas Paulsson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 8 02:29:45 PDT 2023
jonpa added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp:46
+ // Data structures to map regs to their definitions and kills per MBB.
+ struct Reg2MIMap : public std::map<Register, MachineInstr *> {
+ MachineInstr *get(Register Reg) {
----------------
arsenm wrote:
> I thought subclassing STL types was discouraged. I'd also default to using the LLVM map types if there's no observable difference anyway
My viewpoint was that if we use an LLVM map it looks like it's faster than STL, but if it isn't, we could use STL for now until we find a better way, and in the future it will be clear that this has not been improved upon yet.
I am fine either way, so I could change it if that's what the rest of you want...
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147532/new/
https://reviews.llvm.org/D147532
More information about the llvm-commits
mailing list