[spirv] Run canonicalization and CSE after lowering affine (#8485)
diff --git a/iree/compiler/Codegen/SPIRV/Passes.cpp b/iree/compiler/Codegen/SPIRV/Passes.cpp index c9ed9b3..80bb6d2 100644 --- a/iree/compiler/Codegen/SPIRV/Passes.cpp +++ b/iree/compiler/Codegen/SPIRV/Passes.cpp
@@ -117,6 +117,8 @@ pm.addPass(createCSEPass()); pm.addPass(createLowerAffinePass()); + pm.addPass(createCanonicalizerPass()); + pm.addPass(createCSEPass()); pm.addPass(createConvertToSPIRVPass());