Skip to content

Commit a9e5874

Browse files
committed
Changing order of legalization passes has more determinisc crash behavior. introduced in #9c29217 needs to be one of the last steps of legalization
1 parent 763f6d4 commit a9e5874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVTargetMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ bool SPIRVPassConfig::addIRTranslator() {
218218
}
219219

220220
void SPIRVPassConfig::addPreLegalizeMachineIR() {
221-
addPass(createSPIRVPreLegalizerPass());
222221
addPass(createSPIRVPreLegalizerCombiner());
222+
addPass(createSPIRVPreLegalizerPass());
223223
}
224224

225225
// Use the default legalizer.

0 commit comments

Comments
 (0)