diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2015-07-10 10:37:09 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-07-10 10:37:09 +0000 |
| commit | da33d80e9a25b59b4f382b8a4589fb1c3c6d5e50 (patch) | |
| tree | 0ce2643be41895503c196e6fb7c9b73b7ed3b31a /llvm/lib | |
| parent | edb0210c38e4965c5b6518530622246c331632ae (diff) | |
| download | bcm5719-llvm-da33d80e9a25b59b4f382b8a4589fb1c3c6d5e50.tar.gz bcm5719-llvm-da33d80e9a25b59b4f382b8a4589fb1c3c6d5e50.zip | |
Disable loop re-rotation for -Oz (patch by Andrey Turetsky)
After changes in rL231820 loop re-rotation is performed even in -Oz mode. Since loop rotation is disabled for -Oz, it seems loop re-rotation should be disabled too.
Differential Revision: http://reviews.llvm.org/D10961
llvm-svn: 241897
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/PassManagerBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp index a067a4b4525..88e5e479136 100644 --- a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -320,8 +320,8 @@ void PassManagerBuilder::populateModulePassManager( // Re-rotate loops in all our loop nests. These may have fallout out of // rotated form due to GVN or other transformations, and the vectorizer relies - // on the rotated form. - MPM.add(createLoopRotatePass()); + // on the rotated form. Disable header duplication at -Oz. + MPM.add(createLoopRotatePass(SizeLevel == 2 ? 0 : -1)); // Distribute loops to allow partial vectorization. I.e. isolate dependences // into separate loop that would otherwise inhibit vectorization. |

