[llvm] [X86] Honor rewrite semantics of `contract` in X86ISel combines (PR #174440)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 5 09:20:36 PST 2026


================
@@ -8605,6 +8605,9 @@ static SDValue lowerToAddSubOrFMAddSub(const BuildVectorSDNode *BV,
     return DAG.getVectorShuffle(VT, DL, Sub, Add, Mask);
   }
 
+  if (!HasAllowContract)
----------------
RKSimon wrote:

I don't understand why we need this - X86 ADDSUB nodes are effectively alternating blend shuffles of FSUB/FADD - they shouldn't have an effect on fp semantics

https://github.com/llvm/llvm-project/pull/174440


More information about the llvm-commits mailing list