[RISCV] Refactor translateSetCCForBranch to prepare for D130508. NFC.
authorCraig Topper <craig.topper@sifive.com>
Mon, 25 Jul 2022 22:42:42 +0000 (15:42 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 25 Jul 2022 22:54:54 +0000 (15:54 -0700)
commit45944e7cf45915eb2a0a2fae24e3396fc91dfc22
tree5e8add77eaaaf7be952663130807707d4bd64535
parent1e636f2676fab942e58fac4f814cd8fb5bf3e682
[RISCV] Refactor translateSetCCForBranch to prepare for D130508. NFC.

D130508 handles more constants than just 1 or -1. We need to extract
the constant instead of relying isOneConstant or isAllOnesConstant.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp