[PATCH] D104723: [DAGCombine] Check reassoc flags in aggressive fsub fusion

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 30 03:45:57 PDT 2021


foad added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/fpext-free.ll:312
 entry:
-  %mul = fmul half %u, %v
+  %mul = fmul reassoc half %u, %v
   %mul.ext = fpext half %mul to float
----------------
I don't think this transform should require "reassoc" on this fmul, should it? `%u * %v` is calculated the same way before and after the transform. Maybe it should require "reassoc" on the call to fmuladd though, because the add does get reassociated with the fsub.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104723/new/

https://reviews.llvm.org/D104723



More information about the llvm-commits mailing list