[RISCV] Use hasAllWUsers to recover XORI/ORI
authorLiaoChunyu <chunyu@iscas.ac.cn>
Sun, 9 Oct 2022 13:52:36 +0000 (21:52 +0800)
committerLiaoChunyu <chunyu@iscas.ac.cn>
Mon, 10 Oct 2022 06:16:50 +0000 (14:16 +0800)
commita835b92e6c309460d0c225545d312eb15556a90a
treeefedd2ee58a3f2766fabc4f0a54ec4f252079ea8
parent158ad803ee8106e2b385ad8b8fd0838175b0ca42
[RISCV] Use hasAllWUsers to recover XORI/ORI

reference 0fbe71e91f44.

Also add testcase for addi.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D135538
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/CodeGen/RISCV/rv64i-demanded-bits.ll