Computing the negated RHS expression just to see if it compares equal
and throw it away feels dirty.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| llvm/include/llvm/CodeGen/TargetLowering.h | ||
|---|---|---|
| 4098 | (style) either create a if (Neg) {} outer wrapper or do a if (!Neg) return SDValue(); early-out | |
| llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
| 392 | drop DAG? | |
| 10402 | Might be worth converting the static method to DAGCombiner::combineMinNumMaxNum as a NFC pre-commit. | |
| 10420–10429 | Move this into the braces above? Its looks that's the only place Combined could be set | |
(style) either create a if (Neg) {} outer wrapper or do a if (!Neg) return SDValue(); early-out