diff options
| author | Roman Gareev <gareevroman@gmail.com> | 2017-09-01 06:52:28 +0000 |
|---|---|---|
| committer | Roman Gareev <gareevroman@gmail.com> | 2017-09-01 06:52:28 +0000 |
| commit | 1cb3491620ab8805e64dec5512f1d52ca170494e (patch) | |
| tree | 357429516b423b0bc72885e5eb3bd657fd3b5434 /polly/lib/CodeGen | |
| parent | c6c5af75f2c84d1b6204c20f1f31f23ee78b446e (diff) | |
| download | bcm5719-llvm-1cb3491620ab8805e64dec5512f1d52ca170494e.tar.gz bcm5719-llvm-1cb3491620ab8805e64dec5512f1d52ca170494e.zip | |
Run GVN during the cleanup
Currently, GVN can be necessary to eliminate redundant instructions in case
of, for instance, GEMM and float type. This patch makes GVN be run during
the cleanup.
Reviewed-by: Tobias Grosser <tobias@grosser.es>,
Michael Kruse <llvm@meinersbur.de>
Differential Revision: https://reviews.llvm.org/D37340
llvm-svn: 312307
Diffstat (limited to 'polly/lib/CodeGen')
| -rw-r--r-- | polly/lib/CodeGen/CodegenCleanup.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/polly/lib/CodeGen/CodegenCleanup.cpp b/polly/lib/CodeGen/CodegenCleanup.cpp index cc155157f69..00a7e7099bd 100644 --- a/polly/lib/CodeGen/CodegenCleanup.cpp +++ b/polly/lib/CodeGen/CodegenCleanup.cpp @@ -68,6 +68,7 @@ public: FPM->add(createCFGSimplificationPass()); FPM->add(createReassociatePass()); FPM->add(createLoopRotatePass()); + FPM->add(createNewGVNPass()); FPM->add(createLICMPass()); FPM->add(createLoopUnswitchPass()); FPM->add(createCFGSimplificationPass()); |

