Skip to content

Commit e24dfbd

Browse files
committed
clang-format
1 parent 9cfe0d5 commit e24dfbd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ struct OperandInfo {
8787
unsigned Log2EEW;
8888

8989
OperandInfo(RISCVII::VLMUL EMUL, unsigned Log2EEW)
90-
: EMUL(RISCVVType::decodeVLMUL(EMUL)), Log2EEW(Log2EEW) {
91-
}
90+
: EMUL(RISCVVType::decodeVLMUL(EMUL)), Log2EEW(Log2EEW) {}
9291

9392
OperandInfo(std::pair<unsigned, bool> EMUL, unsigned Log2EEW)
9493
: EMUL(EMUL), Log2EEW(Log2EEW) {}
@@ -134,7 +133,6 @@ static raw_ostream &operator<<(raw_ostream &OS,
134133
return OS;
135134
}
136135

137-
138136
namespace llvm {
139137
namespace RISCVVType {
140138
/// Return EMUL = (EEW / SEW) * LMUL where EEW comes from Log2EEW and LMUL and
@@ -718,8 +716,7 @@ getOperandLog2EEW(const MachineOperand &MO, const MachineRegisterInfo *MRI) {
718716
}
719717

720718
static std::optional<OperandInfo>
721-
getOperandInfo(const MachineOperand &MO,
722-
const MachineRegisterInfo *MRI) {
719+
getOperandInfo(const MachineOperand &MO, const MachineRegisterInfo *MRI) {
723720
const MachineInstr &MI = *MO.getParent();
724721
const RISCVVPseudosTable::PseudoInfo *RVV =
725722
RISCVVPseudosTable::getPseudoInfo(MI.getOpcode());
@@ -1186,7 +1183,7 @@ std::optional<MachineOperand> RISCVVLOptimizer::checkUsers(MachineInstr &MI) {
11861183

11871184
std::optional<OperandInfo> ConsumerInfo = getOperandInfo(UserOp, MRI);
11881185
std::optional<OperandInfo> ProducerInfo =
1189-
getOperandInfo(MI.getOperand(0), MRI);
1186+
getOperandInfo(MI.getOperand(0), MRI);
11901187
if (!ConsumerInfo || !ProducerInfo) {
11911188
LLVM_DEBUG(dbgs() << " Abort due to unknown operand information.\n");
11921189
LLVM_DEBUG(dbgs() << " ConsumerInfo is: " << ConsumerInfo << "\n");

0 commit comments

Comments
 (0)