[PATCH] D26408: [LoopDistribute] Preserve GlobalsAA also in the new PM

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 11:51:46 PST 2016


davide created this revision.
davide added a reviewer: eli.friedman.
davide added a subscriber: llvm-commits.
Herald added a subscriber: mzolotukhin.

Eli, in r281758 you changed LoopDistribute to preserve GlobalsAA, but only when the old PM is running.
This patch does the same for the new PM.


https://reviews.llvm.org/D26408

Files:
  lib/Transforms/Scalar/LoopDistribute.cpp


Index: lib/Transforms/Scalar/LoopDistribute.cpp
===================================================================
--- lib/Transforms/Scalar/LoopDistribute.cpp
+++ lib/Transforms/Scalar/LoopDistribute.cpp
@@ -977,6 +977,7 @@
   PreservedAnalyses PA;
   PA.preserve<LoopAnalysis>();
   PA.preserve<DominatorTreeAnalysis>();
+  PA.preserve<GlobalsAA>();
   return PA;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26408.77226.patch
Type: text/x-patch
Size: 372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161108/6f657520/attachment.bin>


More information about the llvm-commits mailing list