[llvm] [AMDGPU] Update log lowering to remove contract for AMDGCN backend (PR #168916)
Adel Ejjeh via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 10:03:11 PST 2025
================
@@ -2767,7 +2766,9 @@ SDValue AMDGPUTargetLowering::LowerFLOGCommon(SDValue Op,
EVT VT = Op.getValueType();
SDNodeFlags Flags = Op->getFlags();
SDLoc DL(Op);
-
+ // Our implementation of LOG is not contract safe, so disable instruction
+ // contraction.
+ Flags.setAllowContract(false);
----------------
adelejjeh wrote:
Do you mean remove the flag from the actual MIR instructions that we generate for llvm.log where the flag is problematic, instead of removing it from llvm.log itself?
https://github.com/llvm/llvm-project/pull/168916
More information about the llvm-commits
mailing list