[polly] r312480 - [CodegenCleanup] Use old GVN pass instead of NewGVN
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 4 04:04:33 PDT 2017
Author: grosser
Date: Mon Sep 4 04:04:33 2017
New Revision: 312480
URL: http://llvm.org/viewvc/llvm-project?rev=312480&view=rev
Log:
[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.
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=312480&r1=312479&r2=312480&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodegenCleanup.cpp (original)
+++ polly/trunk/lib/CodeGen/CodegenCleanup.cpp Mon Sep 4 04:04:33 2017
@@ -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());
More information about the llvm-commits
mailing list