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/ExceptionDemo/ExceptionDemo.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/ExceptionDemo/ExceptionDemo.cpp')
-rw-r--r-- | llvm/examples/ExceptionDemo/ExceptionDemo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp index e09c990f8a9..95ccd24a689 100644 --- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp +++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp @@ -1974,6 +1974,9 @@ int main(int argc, char* argv[]) { // Optimizations turned on #ifdef ADD_OPT_PASSES + // Basic AliasAnslysis support for GVN. + fpm.add(llvm::createBasicAliasAnalysisPass()); + // Promote allocas to registers. fpm.add(llvm::createPromoteMemoryToRegisterPass()); |