summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl6.html
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs/tutorial/LangImpl6.html')
-rw-r--r--llvm/docs/tutorial/LangImpl6.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/docs/tutorial/LangImpl6.html b/llvm/docs/tutorial/LangImpl6.html
index 97505f7c349..74529768aed 100644
--- a/llvm/docs/tutorial/LangImpl6.html
+++ b/llvm/docs/tutorial/LangImpl6.html
@@ -1768,6 +1768,8 @@ int main() {
// Set up the optimizer pipeline. Start with registering info about how the
// target lays out data structures.
OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData()));
+ // Provide basic AliasAnalysis support for GVN.
+ OurFPM.add(createBasicAliasAnalysisPass());
// Do simple "peephole" optimizations and bit-twiddling optzns.
OurFPM.add(createInstructionCombiningPass());
// Reassociate expressions.
OpenPOWER on IntegriCloud