forked from OSchip/llvm-project
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
This commit is contained in:
parent
c6c5af75f2
commit
1cb3491620
|
@ -68,6 +68,7 @@ public:
|
||||||
FPM->add(createCFGSimplificationPass());
|
FPM->add(createCFGSimplificationPass());
|
||||||
FPM->add(createReassociatePass());
|
FPM->add(createReassociatePass());
|
||||||
FPM->add(createLoopRotatePass());
|
FPM->add(createLoopRotatePass());
|
||||||
|
FPM->add(createNewGVNPass());
|
||||||
FPM->add(createLICMPass());
|
FPM->add(createLICMPass());
|
||||||
FPM->add(createLoopUnswitchPass());
|
FPM->add(createLoopUnswitchPass());
|
||||||
FPM->add(createCFGSimplificationPass());
|
FPM->add(createCFGSimplificationPass());
|
||||||
|
|
Loading…
Reference in New Issue