[llvm] r281757 - LoopLoadElimination should preserve GlobalsAA.
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 10:58:07 PDT 2016
Author: efriedma
Date: Fri Sep 16 12:58:07 2016
New Revision: 281757
URL: http://llvm.org/viewvc/llvm-project?rev=281757&view=rev
Log:
LoopLoadElimination should preserve GlobalsAA.
Avoids losing GlobalsAA in the standard pass pipeline.
Differential Revision: https://reviews.llvm.org/D24094
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopLoadElimination.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopLoadElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopLoadElimination.cpp?rev=281757&r1=281756&r2=281757&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopLoadElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopLoadElimination.cpp Fri Sep 16 12:58:07 2016
@@ -21,6 +21,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/ADT/Statistic.h"
+#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/Analysis/LoopAccessAnalysis.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/ScalarEvolutionExpander.h"
@@ -580,6 +581,7 @@ public:
AU.addRequired<ScalarEvolutionWrapperPass>();
AU.addRequired<DominatorTreeWrapperPass>();
AU.addPreserved<DominatorTreeWrapperPass>();
+ AU.addPreserved<GlobalsAAWrapperPass>();
}
static char ID;
More information about the llvm-commits
mailing list