[PATCH] D24204: LoopDistribute should preserve GlobalsAA

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 16 11:10:22 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL281758: LoopDistribute should preserve GlobalsAA. (authored by efriedma).

Changed prior to commit:
  https://reviews.llvm.org/D24204?vs=70215&id=71676#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24204

Files:
  llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp

Index: llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp
+++ llvm/trunk/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.71676.patch
Type: text/x-patch
Size: 792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160916/39049ef6/attachment.bin>


More information about the llvm-commits mailing list