[DAG] Extract helper for (neg x) [nfc]
authorPhilip Reames <preames@rivosinc.com>
Thu, 6 Oct 2022 20:10:58 +0000 (13:10 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 6 Oct 2022 20:23:52 +0000 (13:23 -0700)
commit04bb32e58a6592e70148d41c999eb3949268328c
tree6ce436ba99bf23117dfc9d9c1a9797c4e5acf842
parent9dd047629326bdf9974746f848dd4a834cebd49a
[DAG] Extract helper for (neg x) [nfc]

This is a frequently reoccurring pattern, let's factor it out.

Differential Revision: https://reviews.llvm.org/D135301
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp