File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -1060,18 +1060,6 @@ int Optimizer::optimization()
1060
1060
1061
1061
runPass (PI_countBankConflicts);
1062
1062
1063
- // some passes still rely on G4_Declares and their def-use even after RA,
1064
- // and removeRedundantMove will break them since it deletes moves solely based on GRF assignment
1065
- // without maintaining def-use of G4_Declares.
1066
- // so when these passes are active we have to defer removeRedundMov until after the passes
1067
- // ToDo: study the perf impact of moving this post scheduling
1068
- bool preserveVirtualDefUse = kernel.getOption (vISA_ReRAPostSchedule) || builder.doAccSub ();
1069
-
1070
- if (!preserveVirtualDefUse)
1071
- {
1072
- runPass (PI_removeRedundMov);
1073
- }
1074
-
1075
1063
//
1076
1064
// if a fall-through BB does not immediately follow its predecessor
1077
1065
// in the code layout, then insert a jump-to-fall-through in the predecessor
@@ -1099,11 +1087,9 @@ int Optimizer::optimization()
1099
1087
1100
1088
runPass (PI_reRAPostSchedule);
1101
1089
1102
- if (preserveVirtualDefUse
1103
- )
1104
- {
1105
- runPass (PI_removeRedundMov);
1106
- }
1090
+ // No pass after this should expect def-use to be preserved as this pass
1091
+ // removes raw movs with identical src/dst physical GRFs.
1092
+ runPass (PI_removeRedundMov);
1107
1093
1108
1094
// remove any placeholders blocks inserted to aid regalloc
1109
1095
// run this pass after reRA pass otherwise CFG can become
You can’t perform that action at this time.
0 commit comments