[Mlir-commits] [mlir] [mlir][ROCDL] Remove unneeded bf16 expansion in LowerGPUToROCDL (PR #139603)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon May 12 11:33:07 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Krzysztof Drewniak (krzysz00)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/139603.diff
1 Files Affected:
- (modified) mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp (-1)
``````````diff
diff --git a/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp b/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
index dd16ec4b73e9f..c52bf505de4a5 100644
--- a/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
+++ b/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
@@ -319,7 +319,6 @@ struct LowerGpuOpsToROCDLOpsPass final
{
RewritePatternSet patterns(ctx);
populateGpuRewritePatterns(patterns);
- arith::populateExpandBFloat16Patterns(patterns);
(void)applyPatternsGreedily(m, std::move(patterns));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/139603
More information about the Mlir-commits
mailing list