[RISCV] Eliminate the need to pass both RISCVSubtarget and MCSubtargetInfo to isCompressibleInst.
RISCVSubtarget should be a superclass of MCSubtargetInfo so should have all the same information. Now we pass RISCVSubtarget by reference and name it STI. Confusingly, we seem to have been using an MCSubtargetInfo from the TargetMachine rather than the one associated with the function we are operating. I'm going to assume that was a mistake and not intentional. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D141966
Loading
Please sign in to comment