[PATCH] D24204: LoopDistribute should preserve GlobalsAA

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 2 13:10:18 PDT 2016


efriedma created this revision.
efriedma added reviewers: anemet, hfinkel, chandlerc.
efriedma added a subscriber: llvm-commits.
efriedma set the repository for this revision to rL LLVM.
Herald added a subscriber: mzolotukhin.

Repository:
  rL LLVM

https://reviews.llvm.org/D24204

Files:
  lib/Transforms/Scalar/LoopDistribute.cpp

Index: lib/Transforms/Scalar/LoopDistribute.cpp
===================================================================
--- lib/Transforms/Scalar/LoopDistribute.cpp
+++ lib/Transforms/Scalar/LoopDistribute.cpp
@@ -28,6 +28,7 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Analysis/BlockFrequencyInfo.h"
+#include "llvm/Analysis/GlobalsModRef.h"
 #include "llvm/Analysis/LoopAccessAnalysis.h"
 #include "llvm/Analysis/LoopInfo.h"
 #include "llvm/Analysis/LoopPassManager.h"
@@ -930,6 +931,7 @@
     AU.addRequired<DominatorTreeWrapperPass>();
     AU.addPreserved<DominatorTreeWrapperPass>();
     AU.addRequired<OptimizationRemarkEmitterWrapperPass>();
+    AU.addPreserved<GlobalsAAWrapperPass>();
   }
 
   static char ID;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24204.70215.patch
Type: text/x-patch
Size: 759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160902/f5c74dd9/attachment.bin>


More information about the llvm-commits mailing list