File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -1045,13 +1045,16 @@ void PassManagerBuilder::addLTOOptimizationPasses(legacy::PassManagerBase &PM) {
1045
1045
if (EnableLoopInterchange)
1046
1046
PM.add (createLoopInterchangePass ());
1047
1047
1048
- // Unroll small loops
1049
- PM.add (createSimpleLoopUnrollPass (OptLevel, DisableUnrollLoops,
1050
- ForgetAllSCEVInLoopUnroll));
1051
- PM.add (createLoopVectorizePass (true , !LoopVectorize));
1052
- // The vectorizer may have significantly shortened a loop body; unroll again.
1053
- PM.add (createLoopUnrollPass (OptLevel, DisableUnrollLoops,
1054
- ForgetAllSCEVInLoopUnroll));
1048
+ if (!SYCLOptimizationMode) {
1049
+ // Unroll small loops
1050
+ PM.add (createSimpleLoopUnrollPass (OptLevel, DisableUnrollLoops,
1051
+ ForgetAllSCEVInLoopUnroll));
1052
+ PM.add (createLoopVectorizePass (true , !LoopVectorize));
1053
+ // The vectorizer may have significantly shortened a loop body; unroll
1054
+ // again.
1055
+ PM.add (createLoopUnrollPass (OptLevel, DisableUnrollLoops,
1056
+ ForgetAllSCEVInLoopUnroll));
1057
+ }
1055
1058
1056
1059
PM.add (createWarnMissedTransformationsPass ());
1057
1060
You can’t perform that action at this time.
0 commit comments