@@ -26,7 +26,7 @@ struct LoopSimplifier: Reducer {
2626 // (if e.g. the loop is necessary to trigger JIT compilation) and so we test each reduction multiple times.
2727 private let numTestExecutions = 3
2828
29- func reduce( with helper: MinimizationHelper ) async {
29+ func reduce( with helper: MinimizationHelper ) {
3030 /// Here we keep blocks (i.e. something like an iterator) in use even while changing the underlying code.
3131 /// This works because the iteration order visits inner blocks before outer blocks, so we will never change
3232 /// block instructions that we will visit later on.
@@ -221,7 +221,7 @@ struct LoopSimplifier: Reducer {
221221 } else {
222222 replacement = Instruction ( BeginRepeatLoop ( iterations: numIterations, exposesLoopCounter: false ) )
223223 }
224- if await helper. tryReplacing ( instructionAt: group. head, with: replacement, numExecutions: numTestExecutions) {
224+ if helper. tryReplacing ( instructionAt: group. head, with: replacement, numExecutions: numTestExecutions) {
225225 return
226226 }
227227 }
@@ -237,7 +237,7 @@ struct LoopSimplifier: Reducer {
237237 newCode [ headerIndex] = Instruction ( BeginRepeatLoop ( iterations: numIterations, exposesLoopCounter: false ) )
238238 }
239239 // After this change, the variable numbers may no longer be sequential as we may have removed instructions with inner outputs. So we need to also renumber the variables.
240- if await helper. tryReplacing ( range: range, with: newCode, renumberVariables: true , numExecutions: numTestExecutions) {
240+ if helper. tryReplacing ( range: range, with: newCode, renumberVariables: true , numExecutions: numTestExecutions) {
241241 return
242242 }
243243 }
@@ -326,6 +326,6 @@ struct LoopSimplifier: Reducer {
326326 }
327327
328328 // We may have changed the order of variable declarations, so we need to renumber the variables.
329- await helper. tryReplacements ( replacements, renumberVariables: true , numExecutions: numTestExecutions)
329+ helper. tryReplacements ( replacements, renumberVariables: true , numExecutions: numTestExecutions)
330330 }
331331}
0 commit comments