[llvm] r363879 - [MemorySSA] Use GraphDiff info when computing IDF.
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 14:17:31 PDT 2019
Author: asbirlea
Date: Wed Jun 19 14:17:31 2019
New Revision: 363879
URL: http://llvm.org/viewvc/llvm-project?rev=363879&view=rev
Log:
[MemorySSA] Use GraphDiff info when computing IDF.
Summary:
When computing IDF for insert updates, ensure we use the snapshot CFG offered by GraphDiff.
Caught by D63389.
Reviewers: kuhar, george.burgess.iv
Subscribers: jlebar, Prazek, llvm-commits, Szelethus
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D63443
Modified:
llvm/trunk/lib/Analysis/MemorySSAUpdater.cpp
Modified: llvm/trunk/lib/Analysis/MemorySSAUpdater.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemorySSAUpdater.cpp?rev=363879&r1=363878&r2=363879&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemorySSAUpdater.cpp (original)
+++ llvm/trunk/lib/Analysis/MemorySSAUpdater.cpp Wed Jun 19 14:17:31 2019
@@ -963,7 +963,7 @@ void MemorySSAUpdater::applyInsertUpdate
// 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);
More information about the llvm-commits
mailing list