[PATCH] D111688: [MachineSink] Compile time improvement for large testcases which has many kill flags
Bing Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 18 00:46:16 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf383c5331106: [MachineSink] Compile time improvement for large testcases which has many kill… (authored by yubing).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111688/new/
https://reviews.llvm.org/D111688
Files:
llvm/lib/CodeGen/MachineSink.cpp
Index: llvm/lib/CodeGen/MachineSink.cpp
===================================================================
--- llvm/lib/CodeGen/MachineSink.cpp
+++ llvm/lib/CodeGen/MachineSink.cpp
@@ -131,7 +131,7 @@
// will be split.
SetVector<std::pair<MachineBasicBlock *, MachineBasicBlock *>> ToSplit;
- SparseBitVector<> RegsToClearKillFlags;
+ DenseSet<Register> RegsToClearKillFlags;
using AllSuccsCache =
std::map<MachineBasicBlock *, SmallVector<MachineBasicBlock *, 4>>;
@@ -1439,7 +1439,7 @@
// used registers.
for (MachineOperand &MO : MI.operands()) {
if (MO.isReg() && MO.isUse())
- RegsToClearKillFlags.set(MO.getReg()); // Remember to clear kill flags.
+ RegsToClearKillFlags.insert(MO.getReg()); // Remember to clear kill flags.
}
return true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111688.380287.patch
Type: text/x-patch
Size: 810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211018/f896042f/attachment.bin>
More information about the llvm-commits
mailing list