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 {
1346
1346
const MachineInstr &UserMI = *UserOp.getParent ();
1347
1347
LLVM_DEBUG (dbgs () << " Checking user: " << UserMI << " \n " );
1348
1348
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 ()) {
1352
1350
LLVM_DEBUG (dbgs () << " Peeking through uses of COPY\n " );
1353
1351
Worklist.insert_range (llvm::make_pointer_range (
1354
1352
MRI->use_operands (UserMI.getOperand (0 ).getReg ())));
Original file line number Diff line number Diff line change 40
40
namespace llvm {
41
41
42
42
static 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 ();
46
45
}
47
46
48
47
static bool isSoleUseCopyToV0 (SUnit &SU) {
You can’t perform that action at this time.
0 commit comments