[PATCH] D144447: [Clang] Teach buildFMulAdd to peek through fneg to find fmul.
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 20 21:50:21 PST 2023
craig.topper created this revision.
craig.topper added reviewers: efriedma, aaron.ballman, andrew.w.kaylor, kpn, spatel, uweigand.
Herald added a subscriber: StephenFan.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added a project: clang.
Allows us to handle expressions like -(a * b) + c
Based on the examples from D144366 <https://reviews.llvm.org/D144366> that gcc seems to get.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144447
Files:
clang/lib/CodeGen/CGExprScalar.cpp
clang/test/CodeGen/constrained-math-builtins.c
clang/test/CodeGen/fp-contract-pragma.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144447.499039.patch
Type: text/x-patch
Size: 6931 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230221/0a2e2d0a/attachment-0001.bin>
More information about the cfe-commits
mailing list