const VSETVLIInfo &CurInfo) const {
assert(Require == computeInfoForInstr(MI, MI.getDesc().TSFlags, MRI));
- if (CurInfo.isCompatible(MI, Require))
- return false;
-
if (!CurInfo.isValid() || CurInfo.isUnknown() || CurInfo.hasSEWLMULRatioOnly())
return true;
+ if (CurInfo.isCompatible(MI, Require))
+ return false;
+
// For vmv.s.x and vfmv.s.f, there is only two behaviors, VL = 0 and VL > 0.
// Additionally, if writing to an implicit_def operand, we don't need to
// preserve any other bits and are thus compatible with any larger etype,