Skip to content

Commit

Permalink
fixup! improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmaitland committed Oct 3, 2024
1 parent 37daa19 commit 2aa4769
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,10 @@ RISCVInstructionSelector::renderVLOp(MachineOperand &Root) const {
MIB.addImm(RISCV::VLMaxSentinel);
}}};

if (isUInt<5>(C->getZExtValue()))
return {
{[=](MachineInstrBuilder &MIB) { MIB.addImm(C->getZExtValue()); }}};
if (isUInt<5>(C->getZExtValue())) {
uint64_t ZExtC = C->getZExtValue();
return {{[=](MachineInstrBuilder &MIB) { MIB.addImm(ZExtC); }}};
}
}
return {{[=](MachineInstrBuilder &MIB) { MIB.addReg(Root.getReg()); }}};
}
Expand Down

0 comments on commit 2aa4769

Please sign in to comment.