summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Gareev <gareevroman@gmail.com>2016-01-12 17:59:06 +0000
committerRoman Gareev <gareevroman@gmail.com>2016-01-12 17:59:06 +0000
commit6ebc01c9735fd3cba3ccf1871a31337992ca0e7f (patch)
tree444d14d6e40b2701f40faa6f0a0665f182ce79d4
parent1e26e3957996e7ea0ed3f0fa490582d9181667c5 (diff)
downloadbcm5719-llvm-6ebc01c9735fd3cba3ccf1871a31337992ca0e7f.tar.gz
bcm5719-llvm-6ebc01c9735fd3cba3ccf1871a31337992ca0e7f.zip
We do not need to schedule another loop interchange pass after Polly, as Polly
should perform loop interchanges itself. This also fixes a bug we see due to the "loop-interchange" pass producing incorrect IR when compiling linpack-pc.c from the LLVM test-suite with "-polly-position=before-vectorizer". Reviewed-by: Tobias Grosser <tobias@grosser.es> llvm-svn: 257495
-rw-r--r--polly/lib/CodeGen/CodegenCleanup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodegenCleanup.cpp b/polly/lib/CodeGen/CodegenCleanup.cpp
index 932a3e62a4f..f9097031f81 100644
--- a/polly/lib/CodeGen/CodegenCleanup.cpp
+++ b/polly/lib/CodeGen/CodegenCleanup.cpp
@@ -68,7 +68,7 @@ public:
FPM->add(createIndVarSimplifyPass());
FPM->add(createLoopIdiomPass());
FPM->add(createLoopDeletionPass());
- FPM->add(createLoopInterchangePass());
+ FPM->add(createDemoteRegisterToMemoryPass());
FPM->add(createCFGSimplificationPass());
FPM->add(createSimpleLoopUnrollPass());
FPM->add(createMergedLoadStoreMotionPass());
OpenPOWER on IntegriCloud