File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1346,9 +1346,7 @@ RISCVVLOptimizer::checkUsers(const MachineInstr &MI) const {
13461346 const MachineInstr &UserMI = *UserOp.getParent ();
13471347 LLVM_DEBUG (dbgs () << " Checking user: " << UserMI << " \n " );
13481348
1349- if (UserMI.isCopy () && UserMI.getOperand (0 ).getReg ().isVirtual () &&
1350- UserMI.getOperand (0 ).getSubReg () == RISCV::NoSubRegister &&
1351- UserMI.getOperand (1 ).getSubReg () == RISCV::NoSubRegister) {
1349+ if (UserMI.isFullCopy () && UserMI.getOperand (0 ).getReg ().isVirtual ()) {
13521350 LLVM_DEBUG (dbgs () << " Peeking through uses of COPY\n " );
13531351 Worklist.insert_range (llvm::make_pointer_range (
13541352 MRI->use_operands (UserMI.getOperand (0 ).getReg ())));
Original file line number Diff line number Diff line change 4040namespace llvm {
4141
4242static bool isCopyToV0 (const MachineInstr &MI) {
43- return MI.isCopy () && MI.getOperand (0 ).getReg () == RISCV::V0 &&
44- MI.getOperand (1 ).getReg ().isVirtual () &&
45- MI.getOperand (1 ).getSubReg () == RISCV::NoSubRegister;
43+ return MI.isFullCopy () && MI.getOperand (0 ).getReg () == RISCV::V0 &&
44+ MI.getOperand (1 ).getReg ().isVirtual ();
4645}
4746
4847static bool isSoleUseCopyToV0 (SUnit &SU) {
You can’t perform that action at this time.
0 commit comments