Skip to content

Commit 20a68c6

Browse files
authored
[RISCV] Remove BREV8 and ORC_B from hasAllNBitUsers in RISCVOptWInstrs. (#147830)
These instructions operate on bytes so we need to round the demanded bits up to the nearest byte which we aren't doing. I think we forgot to update this when we changed from hasAllWUsers to hasNBitUsers. We don't have any test case for these instruction so remove them until we can put together a test.
1 parent 7c16a31 commit 20a68c6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,7 @@ static bool hasAllNBitUsers(const MachineInstr &OrigMI,
311311
case RISCV::XORI:
312312

313313
case RISCV::ANDN:
314-
case RISCV::BREV8:
315314
case RISCV::CLMUL:
316-
case RISCV::ORC_B:
317315
case RISCV::ORN:
318316
case RISCV::SH1ADD:
319317
case RISCV::SH2ADD:

0 commit comments

Comments
 (0)