Skip to content

Commit 299c3dd

Browse files
committed
Format and clean code
Created using spr 1.3.6-beta.1
1 parent 80a1de2 commit 299c3dd

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

llvm/lib/Target/RISCV/RISCVFoldMasks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class RISCVFoldMasks : public MachineFunctionPass {
5050
bool convertToUnmasked(MachineInstr &MI) const;
5151
bool convertVMergeToVMv(MachineInstr &MI) const;
5252

53-
bool isAllOnesMask(const MachineOperand& MaskOp) const;
53+
bool isAllOnesMask(const MachineOperand &MaskOp) const;
5454
};
5555

5656
} // namespace

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3425,8 +3425,7 @@ static bool usesAllOnesMask(SDValue MaskOp) {
34253425
// TODO: Check that the VMSET is the expected bitwidth? The pseudo has
34263426
// undefined behaviour if it's the wrong bitwidth, so we could choose to
34273427
// assume that it's all-ones? Same applies to its VL.
3428-
return MaskOp->isMachineOpcode() &&
3429-
IsVMSet(MaskOp.getMachineOpcode());
3428+
return MaskOp->isMachineOpcode() && IsVMSet(MaskOp.getMachineOpcode());
34303429
}
34313430

34323431
// Return true if we can make sure mask of N is all-ones mask.
@@ -3477,11 +3476,6 @@ bool RISCVDAGToDAGISel::doPeepholeMaskedRVV(MachineSDNode *N) {
34773476
Ops.push_back(Op);
34783477
}
34793478

3480-
// // Transitively apply any node glued to our new node.
3481-
// const auto *Glued = N->getGluedNode();
3482-
// if (auto *TGlued = Glued->getGluedNode())
3483-
// Ops.push_back(SDValue(TGlued, TGlued->getNumValues() - 1));
3484-
34853479
MachineSDNode *Result =
34863480
CurDAG->getMachineNode(Opc, SDLoc(N), N->getVTList(), Ops);
34873481

0 commit comments

Comments
 (0)