[PATCH] D47022: Update MemorySSA in SimpleLoopUnswitch.
Chandler Carruth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 4 03:02:32 PST 2018
chandlerc accepted this revision.
chandlerc added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Transforms/Scalar/SimpleLoopUnswitch.cpp:1437-1442
+ // Remove all MemorySSA in the dead blocks
+ if (MSSAU) {
+ SmallPtrSet<BasicBlock *, 16> DeadBlockSet(DeadBlocks.begin(),
+ DeadBlocks.end());
+ MSSAU->removeBlocks(DeadBlockSet);
+ }
----------------
It would be really nice to avoid building the set here. Can the API be changed to support a list of unique blocks? We already have uniqued them.
(Happy for this to be a follow-up of course.)
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D47022/new/
https://reviews.llvm.org/D47022
More information about the llvm-commits
mailing list