[llvm] r281758 - LoopDistribute should preserve GlobalsAA.
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 11:01:48 PDT 2016
Author: efriedma
Date: Fri Sep 16 13:01:48 2016
New Revision: 281758
URL: http://llvm.org/viewvc/llvm-project?rev=281758&view=rev
Log:
LoopDistribute should preserve GlobalsAA.
Differential Revision: https://reviews.llvm.org/D24204
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp?rev=281758&r1=281757&r2=281758&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp Fri Sep 16 13:01:48 2016
@@ -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 @@ public:
AU.addRequired<DominatorTreeWrapperPass>();
AU.addPreserved<DominatorTreeWrapperPass>();
AU.addRequired<OptimizationRemarkEmitterWrapperPass>();
+ AU.addPreserved<GlobalsAAWrapperPass>();
}
static char ID;
More information about the llvm-commits
mailing list