File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
numba_dpcomp/numba_dpcomp/mlir_compiler/lib/pipelines Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3007,7 +3007,8 @@ class GpuLaunchSinkOpsPass
3007
3007
if (op->walk ([](gpu::LaunchOp launch) {
3008
3008
auto isSinkingBeneficiary = [](mlir::Operation *op) -> bool {
3009
3009
return isa<arith::ConstantOp, ConstantOp, arith::SelectOp,
3010
- arith::CmpIOp>(op);
3010
+ arith::CmpIOp, arith::IndexCastOp, arith::MulIOp,
3011
+ arith::SubIOp, arith::AddIOp>(op);
3011
3012
};
3012
3013
3013
3014
// Pull in instructions that can be sunk
@@ -3123,7 +3124,7 @@ static void populateLowerToGPUPipelineLow(mlir::OpPassManager &pm) {
3123
3124
commonOptPasses (funcPM);
3124
3125
funcPM.addPass (std::make_unique<KernelMemrefOpsMovementPass>());
3125
3126
funcPM.addPass (std::make_unique<GpuLaunchSinkOpsPass>());
3126
- funcPM.addPass (std::make_unique<SinkGpuDimsPass>());
3127
+ // funcPM.addPass(std::make_unique<SinkGpuDimsPass>());
3127
3128
pm.addPass (mlir::createGpuKernelOutliningPass ());
3128
3129
pm.addPass (mlir::createSymbolDCEPass ());
3129
3130
You can’t perform that action at this time.
0 commit comments