[llvm] [AMDGPU] Code clean up and denorm check removal for bf16 omod folding (PR #219042)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 12:04:49 PDT 2026
================
@@ -2505,8 +2505,9 @@ SIFoldOperandsImpl::isOMod(const MachineInstr &MI) const {
}
case AMDGPU::V_PK_MUL_BF16: {
// OMOD folding for BF16 packed multiply
- if (MFI->getMode().FP32Denormals.Output != DenormalMode::PreserveSign ||
- MI.mayRaiseFPException())
+ // PK_*_BF16 ignores DENORM controls, and always preserves denorms
----------------
rampitec wrote:
If I understand it correctly omod simply shifts the exponential and does nothing else. So, it almost guaranteed to produce a denorm. Correct me if I am wrong.
https://github.com/llvm/llvm-project/pull/219042
More information about the llvm-commits
mailing list