[PATCH] D140181: DAG: Pull fneg out of select feeding fadd into fsub
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 02:32:02 PST 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:7013
+ SDValue RHS = Op.getOperand(2);
+ if (LHS.getOpcode() == ISD::FNEG && RHS.getOpcode() == ISD::FNEG) {
+ return DAG.getNode(ISD::SELECT, DL, VT, Op.getOperand(0),
----------------
Why don't you want to use getNegatedExpression ?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140181/new/
https://reviews.llvm.org/D140181
More information about the llvm-commits
mailing list