[llvm] Reenable sched mfma rewrite (PR #180751)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 11:20:48 PST 2026


================
@@ -1330,11 +1330,11 @@ bool RewriteMFMAFormStage::initGCNSchedStage() {
   if (!initHeuristics(RewriteCands, CopyForUse, CopyForDef))
     return false;
 
-  int64_t Cost = getRewriteCost(RewriteCands, CopyForUse, CopyForDef);
+  double Cost = getRewriteCost(RewriteCands, CopyForUse, CopyForDef);
----------------
arsenm wrote:

Is there a concrete benefit or logic change? In general you're supposed to avoid FP in the compiler 

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


More information about the llvm-commits mailing list