[PATCH] D63443: [MemorySSA] Use GraphDiff info when computing IDF.
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 10:07:37 PDT 2019
asbirlea created this revision.
asbirlea added reviewers: kuhar, george.burgess.iv.
Herald added subscribers: Prazek, jlebar.
Herald added a project: LLVM.
When computing IDF for insert updates, ensure we use the snapshot CFG offered by GraphDiff.
Caught by D63389 <https://reviews.llvm.org/D63389>.
Repository:
rL LLVM
https://reviews.llvm.org/D63443
Files:
lib/Analysis/MemorySSAUpdater.cpp
Index: lib/Analysis/MemorySSAUpdater.cpp
===================================================================
--- lib/Analysis/MemorySSAUpdater.cpp
+++ lib/Analysis/MemorySSAUpdater.cpp
@@ -955,7 +955,7 @@
// Compute IDF and add Phis in all IDF blocks that do not have one.
SmallVector<BasicBlock *, 32> IDFBlocks;
if (!BlocksToProcess.empty()) {
- ForwardIDFCalculator IDFs(DT);
+ ForwardIDFCalculator IDFs(DT, GD);
SmallPtrSet<BasicBlock *, 16> DefiningBlocks(BlocksToProcess.begin(),
BlocksToProcess.end());
IDFs.setDefiningBlocks(DefiningBlocks);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63443.205107.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190617/1054b4a3/attachment.bin>
More information about the llvm-commits
mailing list