[polly] r312307 - Run GVN during the cleanup

Roman Gareev via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 23:52:28 PDT 2017


Author: romangareev
Date: Thu Aug 31 23:52:28 2017
New Revision: 312307

URL: http://llvm.org/viewvc/llvm-project?rev=312307&view=rev
Log:
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 at grosser.es>,
             Michael Kruse <llvm at meinersbur.de>

Differential Revision: https://reviews.llvm.org/D37340

Modified:
    polly/trunk/lib/CodeGen/CodegenCleanup.cpp

Modified: polly/trunk/lib/CodeGen/CodegenCleanup.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodegenCleanup.cpp?rev=312307&r1=312306&r2=312307&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodegenCleanup.cpp (original)
+++ polly/trunk/lib/CodeGen/CodegenCleanup.cpp Thu Aug 31 23:52:28 2017
@@ -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());




More information about the llvm-commits mailing list