[PATCH] D33088: [LiveVariables] Switch Kill/Defs sets to be `DenseSet`

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 12:51:05 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL302819: [LiveVariables] Switch Kill/Defs sets to be DenseSet(s). (authored by davide).

Changed prior to commit:
  https://reviews.llvm.org/D33088?vs=98576&id=98668#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33088

Files:
  llvm/trunk/lib/CodeGen/LiveVariables.cpp


Index: llvm/trunk/lib/CodeGen/LiveVariables.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/LiveVariables.cpp
+++ llvm/trunk/lib/CodeGen/LiveVariables.cpp
@@ -767,7 +767,7 @@
                                 MachineBasicBlock *SuccBB) {
   const unsigned NumNew = BB->getNumber();
 
-  SmallSet<unsigned, 16> Defs, Kills;
+  DenseSet<unsigned> Defs, Kills;
 
   MachineBasicBlock::iterator BBI = SuccBB->begin(), BBE = SuccBB->end();
   for (; BBI != BBE && BBI->isPHI(); ++BBI) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33088.98668.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170511/4a491f63/attachment.bin>


More information about the llvm-commits mailing list