[PATCH] D32158: {GVNHoist] Mark GlobalsAA as preserved by GVNHoist.
Nikolai Bozhenov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 18 06:46:59 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL300552: [GVNHoist] Mark GlobalsAA as preserved by GVNHoist. (authored by n.bozhenov).
Changed prior to commit:
https://reviews.llvm.org/D32158?vs=95539&id=95559#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32158
Files:
llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
Index: llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
+++ llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
@@ -45,6 +45,7 @@
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
+#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/Analysis/MemorySSA.h"
#include "llvm/Analysis/MemorySSAUpdater.h"
#include "llvm/Analysis/ValueTracking.h"
@@ -1010,6 +1011,7 @@
AU.addRequired<MemorySSAWrapperPass>();
AU.addPreserved<DominatorTreeWrapperPass>();
AU.addPreserved<MemorySSAWrapperPass>();
+ AU.addPreserved<GlobalsAAWrapperPass>();
}
};
} // namespace
@@ -1026,6 +1028,7 @@
PreservedAnalyses PA;
PA.preserve<DominatorTreeAnalysis>();
PA.preserve<MemorySSAAnalysis>();
+ PA.preserve<GlobalsAA>();
return PA;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32158.95559.patch
Type: text/x-patch
Size: 913 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170418/7979b23f/attachment.bin>
More information about the llvm-commits
mailing list