This is similar to D113574, but as a DAG combine, not tablegen patterns. Doing the fold as a DAG combine allows the fadd to be folded with a fmul, finally producing a predicated vfma. It performs the same fold of fadd(x, vselect(p, y, -0.0)) to vselect p, (fadd x, y), x) using -0.0 as the identity value of a fadd.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with one request
llvm/lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
16418 | The -1.0 in the comment should be -0.0. |
The -1.0 in the comment should be -0.0.