Skip to content

Commit 61c1b22

Browse files
committed
Incorporate corrected ORC_B/BREV8 logic from llvm#148076
1 parent 9dc27d6 commit 61c1b22

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3768,9 +3768,7 @@ bool RISCVDAGToDAGISel::hasAllNBitUsers(SDNode *Node, unsigned Bits,
37683768
case RISCV::XOR:
37693769
case RISCV::XORI:
37703770
case RISCV::ANDN:
3771-
case RISCV::BREV8:
37723771
case RISCV::CLMUL:
3773-
case RISCV::ORC_B:
37743772
case RISCV::ORN:
37753773
case RISCV::XNOR:
37763774
case RISCV::SH1ADD:
@@ -3783,6 +3781,11 @@ bool RISCVDAGToDAGISel::hasAllNBitUsers(SDNode *Node, unsigned Bits,
37833781
if (hasAllNBitUsers(User, Bits, Depth + 1))
37843782
break;
37853783
return false;
3784+
case RISCV::BREV8:
3785+
case RISCV::ORC_B:
3786+
if (hasAllNBitUsers(User, alignDown(Bits, 8), Depth + 1))
3787+
break;
3788+
return false;
37863789
case RISCV::CZERO_EQZ:
37873790
case RISCV::CZERO_NEZ:
37883791
if (Use.getOperandNo() != 0)

0 commit comments

Comments
 (0)