[RISCV] Simplify some code in RISCVInsertVSETVLI by calling an existing function that does the same thing. NFCI

This commit is contained in:
Craig Topper 2021-06-03 17:31:54 -07:00
parent 8a96993da5
commit e9313fa33a
1 changed files with 1 additions and 11 deletions

View File

@ -177,17 +177,7 @@ public:
return true;
}
// VTypes must match.
if (!hasSameVTYPE(Other))
return false;
if (hasAVLImm() != Other.hasAVLImm())
return false;
if (hasAVLImm())
return getAVLImm() == Other.getAVLImm();
return getAVLReg() == Other.getAVLReg();
return hasSameVTYPE(Other) && hasSameAVL(Other);
}
bool operator==(const VSETVLIInfo &Other) const {