[PATCH] D40333: Separate LoopTraversal and BreakFalseDeps out of ExecutionDomainFix into their own files
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 14:12:09 PST 2017
MatzeB added inline comments.
================
Comment at: include/llvm/CodeGen/LoopTraversal.h:66
+ };
+ using MBBInfoMap = DenseMap<MachineBasicBlock *, MBBInfo>;
+ MBBInfoMap MBBInfos;
----------------
You can use a less expensive `SmallVector<>` or `IndexedMap<>` instead of a DenseMap by using the fact that machine basic blocks have a dense numbering. See for example `MachineTraceMetrics::BlockInfo` or `LiveRangeCalc::Map` for examples on how this is can be done.
Repository:
rL LLVM
https://reviews.llvm.org/D40333
More information about the llvm-commits
mailing list