diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-15 18:41:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-15 18:41:10 +0000 |
commit | 56f3a4c761f736f4cb792b0012071c213992c8a0 (patch) | |
tree | 67b4a43343f02a25c1b15bb44106aaf333a14f88 /llvm/examples/Kaleidoscope/Chapter6/toy.cpp | |
parent | 913af510c7059276205049166e7bf69175573da1 (diff) | |
download | bcm5719-llvm-56f3a4c761f736f4cb792b0012071c213992c8a0.tar.gz bcm5719-llvm-56f3a4c761f736f4cb792b0012071c213992c8a0.zip |
Update examples and documentation to explicitly add basicaa, now that it's
no longer included by default.
llvm-svn: 119169
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter6/toy.cpp')
-rw-r--r-- | llvm/examples/Kaleidoscope/Chapter6/toy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter6/toy.cpp b/llvm/examples/Kaleidoscope/Chapter6/toy.cpp index b7b8738f587..bcc9d9e297a 100644 --- a/llvm/examples/Kaleidoscope/Chapter6/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter6/toy.cpp @@ -947,6 +947,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. |