Revert "SIL: add a StackList data structure with zero cost operations."

This commit is contained in:
Arnold Schwaighofer
2021-04-12 12:48:16 -07:00
committed by GitHub
parent e507bcfc44
commit ddfdf4779d
20 changed files with 137 additions and 404 deletions

View File

@@ -69,7 +69,7 @@
#include "swift/SILOptimizer/Utils/InstOptUtils.h"
#include "swift/SILOptimizer/Utils/LoadStoreOptUtils.h"
#include "swift/SIL/BasicBlockData.h"
#include "swift/SIL/BasicBlockDatastructures.h"
#include "swift/SIL/BasicBlockBits.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/Statistic.h"
@@ -1165,7 +1165,7 @@ void DSEContext::runIterativeDSE() {
// Process each basic block with the gen and kill set. Every time the
// BBWriteSetIn of a basic block changes, the optimization is rerun on its
// predecessors.
BasicBlockWorklist WorkList(F);
BasicBlockWorklist<16> WorkList(F);
// Push into reverse post order so that we can pop from the back and get
// post order.
for (SILBasicBlock *B : PO->getReversePostOrder()) {