[llvm] [AMDGPU] Update log lowering to remove contract for AMDGCN backend (PR #168916)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 09:37:53 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);
----------------
arsenm wrote:
Can you sink this down into the actual implementation, for the sequences where it's a problem
https://github.com/llvm/llvm-project/pull/168916
More information about the llvm-commits
mailing list