[polly] r257495 - We do not need to schedule another loop interchange pass after Polly, as Polly
Roman Gareev via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 12 09:59:07 PST 2016
Author: romangareev
Date: Tue Jan 12 11:59:06 2016
New Revision: 257495
URL: http://llvm.org/viewvc/llvm-project?rev=257495&view=rev
Log:
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 at grosser.es>
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=257495&r1=257494&r2=257495&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodegenCleanup.cpp (original)
+++ polly/trunk/lib/CodeGen/CodegenCleanup.cpp Tue Jan 12 11:59:06 2016
@@ -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());
More information about the llvm-commits
mailing list