[CodegenCleanup] Use old GVN pass instead of NewGVN

It seems NewGVN still has some problems: llvm.org/PR34452, we will switch back
after they have been resolved.

llvm-svn: 312480
This commit is contained in:
Tobias Grosser 2017-09-04 11:04:33 +00:00
parent f331a6642b
commit 1a695b1d6c
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@
#include "llvm/PassSupport.h"
#include "llvm/Support/Debug.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Scalar/GVN.h"
#define DEBUG_TYPE "polly-cleanup"
using namespace llvm;
@ -68,7 +70,7 @@ public:
FPM->add(createCFGSimplificationPass());
FPM->add(createReassociatePass());
FPM->add(createLoopRotatePass());
FPM->add(createNewGVNPass());
FPM->add(createGVNPass());
FPM->add(createLICMPass());
FPM->add(createLoopUnswitchPass());
FPM->add(createCFGSimplificationPass());