[llvm] [SPIRV] Added support for the constrained arithmetic intrinsic (PR #157441)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 10 00:24:38 PDT 2025


================
@@ -1193,6 +1199,37 @@ bool SPIRVInstructionSelector::selectOpWithSrcs(Register ResVReg,
   return MIB.constrainAllUses(TII, TRI, RBI);
 }
 
+bool SPIRVInstructionSelector::selectStrictFMulAdd(Register ResVReg,
----------------
arsenm wrote:

In this case there's no value in reporting it as legal. I'd expect to just use .lower() and have it break into the separate operations 

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


More information about the llvm-commits mailing list