llvm.org GIT mirror llvm / 0745858
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363879 91177308-0d34-0410-b5e6-96231b3b80d8 Alina Sbirlea 3 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
962962 // Compute IDF and add Phis in all IDF blocks that do not have one.
963963 SmallVector IDFBlocks;
964964 if (!BlocksToProcess.empty()) {
965 ForwardIDFCalculator IDFs(DT);
965 ForwardIDFCalculator IDFs(DT, GD);
966966 SmallPtrSet DefiningBlocks(BlocksToProcess.begin(),
967967 BlocksToProcess.end());
968968 IDFs.setDefiningBlocks(DefiningBlocks);