From 56f3a4c761f736f4cb792b0012071c213992c8a0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 15 Nov 2010 18:41:10 +0000 Subject: Update examples and documentation to explicitly add basicaa, now that it's no longer included by default. llvm-svn: 119169 --- llvm/docs/tutorial/LangImpl4.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/docs/tutorial/LangImpl4.html') diff --git a/llvm/docs/tutorial/LangImpl4.html b/llvm/docs/tutorial/LangImpl4.html index 35dcdf4914e..89aa38ea2e1 100644 --- a/llvm/docs/tutorial/LangImpl4.html +++ b/llvm/docs/tutorial/LangImpl4.html @@ -176,6 +176,8 @@ add a set of optimizations to run. The code looks like this:

// 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. @@ -1086,6 +1088,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. -- cgit v1.2.3