Skip to content

Commit 2880859

Browse files
authored
[mlir][ROCDL] Remove unneeded bf16 expansion in LowerGPUToROCDL (#139603)
The umbrella pass fol lowering GPU ops to ROCDL (aka lowering to LLVM + the AMDGPU-specific setup) would call the arith patterns that manually implemented extf and truncf on bfloat because the LLVM AMDGPU backend used to not suppport those operaitons. Since the backend does now support these operations and has for quite some time, remove these patterns from the default lowering flow.
1 parent d896e28 commit 2880859

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ struct LowerGpuOpsToROCDLOpsPass final
319319
{
320320
RewritePatternSet patterns(ctx);
321321
populateGpuRewritePatterns(patterns);
322-
arith::populateExpandBFloat16Patterns(patterns);
323322
(void)applyPatternsGreedily(m, std::move(patterns));
324323
}
325324

0 commit comments

Comments
 (0)