[RISCV] Minor cleanups to performSUBCombine. NFC
authorCraig Topper <craig.topper@sifive.com>
Tue, 16 Aug 2022 19:24:18 +0000 (12:24 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 16 Aug 2022 19:59:16 +0000 (12:59 -0700)
commitc7e58836e8799f32f546c52e4c32ae131ecf141e
treefdae47ad92ca5f4c13d0e8754d35408c4ef8385c
parent50630dcc4c8ab5de26e153a948577c4cc743b722
[RISCV] Minor cleanups to performSUBCombine. NFC

-Rename variable NnzC -> N0C.
-Use SelectionDAG::getSetCC to reduce code.
-Use SDValue::getOperand instead of operator-> and SDNode::getOperand.

Initial steps to add another similar combine to this code.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp