Skip to content

Commit

Permalink
[RISCV][InsertVSETVLI] Reorder code to reduce a future diff [nfc]
Browse files Browse the repository at this point in the history
  • Loading branch information
preames committed Dec 12, 2022
1 parent 78503e1 commit b385c01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Expand Up @@ -771,12 +771,12 @@ bool RISCVInsertVSETVLI::needVSETVLI(const MachineInstr &MI,
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,
Expand Down

0 comments on commit b385c01

Please sign in to comment.