[llvm] [SLP] Let the caller tell canConvertToFMA which operand holds the fmul (PR #218754)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 13 13:07:49 PDT 2026


================
@@ -383,6 +383,10 @@ bool isOnceUsedSeed(const Instruction *I);
 /// produce nan/inf.
 Instruction *lookThroughCastRoundTrip(Value *V, bool MustBeElidable);
 
+/// \returns the operand index of \p I that holds a one-use fmul, 0 if there is
----------------
arsenm wrote:

But 0 is the first use index? 

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


More information about the llvm-commits mailing list