[PATCH] D109446: DAG: Fix incorrect folding of fmul -1 to fneg
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 15:40:15 PDT 2021
efriedma added a comment.
I think we can fold `(fmul X, -1.0) -> (fsub -0.0, X)` unconditionally; at least, Alive2 is happy with it. If we can do that, we can just let the existing fsub code figure out the rest. Does that sound like a plan?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109446/new/
https://reviews.llvm.org/D109446
More information about the llvm-commits
mailing list