[RISCV] Add BREV8 to hasAllWUsers in RISCVSExtWRemoval.
authorCraig Topper <craig.topper@sifive.com>
Sun, 13 Nov 2022 19:52:14 +0000 (11:52 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sun, 13 Nov 2022 19:59:33 +0000 (11:59 -0800)
commit6373f8c31720e7d9712acc5914ed9176df5dabde
tree4591eb4f8ad96ef8ad64c7e00e40689029e066db
parent9e14ffa444cdef7ab6fbebb0a4e61474d3f5df09
[RISCV] Add BREV8 to hasAllWUsers in RISCVSExtWRemoval.

This instruction reverses the bits in each byte. Since we're only
interested in whether the upper 32 bits are used or not, we can
look through them to check their users.
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp