[RISCV] Rework hasAllWUsers in RISCVSExtWRemoval. NFCI
Instead of storing the uses to check in the worklist, store the instruction we want to check uses for. Now we pop and instruction from the worklist, loop over its uses and check them. If it's something we need to look across, we'll push it to the worklist. By doing it this way, we can have access to which operand of the user is using the instruction. This will allow supporting store instructions since we'll be able to disambiguate the the value operand and the pointer operand. We can also improve support for *add.uw instructions and shift amount uses. Reviewed By: mohammed-nurulhoque, asb Differential Revision: https://reviews.llvm.org/D137446
Loading
Please sign in to comment