File tree 1 file changed +2
-3
lines changed
compiler/src/iree/compiler/Codegen/LLVMGPU
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -484,9 +484,6 @@ void addGPUTileAndFusePassPipeline(OpPassManager &funcPassManager,
484
484
options.redundantHoisting = false ;
485
485
funcPassManager.addPass (createOptimizeVectorTransferPass ());
486
486
}
487
- // Step 10. Hoist statically bounded allocations. Need to pad dynamic
488
- // allocations at this stage to make sure they can be hoisted.
489
- funcPassManager.addPass (createPadDynamicAllocPass ());
490
487
funcPassManager.addPass (createHoistStaticallyBoundAllocationsPass ());
491
488
funcPassManager.addPass (createCanonicalizerPass ());
492
489
funcPassManager.addPass (createCSEPass ());
@@ -1095,6 +1092,8 @@ static void addLowerToLLVMGPUPasses(OpPassManager &modulePassManager,
1095
1092
// Pad allocations with dynamic dimension after linalg lowering but before
1096
1093
// lowering SCF and affine ops.
1097
1094
.addPass (createPadDynamicAllocPass)
1095
+ // Hoist any newly static allocations from PadDynamicAlloc.
1096
+ .addPass (createHoistStaticallyBoundAllocationsPass)
1098
1097
1099
1098
.addPass (createLowerAffinePass)
1100
1099
.addPass (createCanonicalizerPass)
You can’t perform that action at this time.
0 commit comments