[PATCH] D54025: [LoopSimplifyCFG] Delete dead exiting edges

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 22 04:25:34 PST 2018


mkazantsev planned changes to this revision.
mkazantsev added inline comments.


================
Comment at: lib/Transforms/Scalar/LoopSimplifyCFG.cpp:109
   // after the constant folding.
   SmallPtrSet<BasicBlock *, 8> DeadExitBlocks;
   // The blocks that will still be a part of the current loop after folding.
----------------
We generate switches basing on this, and `SmallPtrSet` has a non-deterministic order. Need underlying NFC to make it a vector.


https://reviews.llvm.org/D54025





More information about the llvm-commits mailing list