forked from OSchip/llvm-project
[RISCV] Simplify some code in RISCVInsertVSETVLI by calling an existing function that does the same thing. NFCI
This commit is contained in:
parent
8a96993da5
commit
e9313fa33a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue