Skip to content

Commit 2214e02

Browse files
committed
[RISCV] Fix typos in RISCVVLOptimizer.cpp. NFC
1 parent 2c397fa commit 2214e02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ bool RISCVVLOptimizer::isCandidate(const MachineInstr &MI) const {
660660
// If we're not using VLMAX, then we need to be careful whether we are using
661661
// TA/TU when there is a non-undef Passthru. But when we are using VLMAX, it
662662
// does not matter whether we are using TA/TU with a non-undef Passthru, since
663-
// there are no tail elements to be perserved.
663+
// there are no tail elements to be preserved.
664664
unsigned VLOpNum = RISCVII::getVLOpNum(Desc);
665665
const MachineOperand &VLOp = MI.getOperand(VLOpNum);
666666
if (VLOp.isReg() || VLOp.getImm() != RISCV::VLMaxSentinel) {
@@ -693,7 +693,7 @@ bool RISCVVLOptimizer::isCandidate(const MachineInstr &MI) const {
693693
// lower lanes using data from higher lanes. There may be other complex
694694
// semantics not mentioned here that make it hard to determine whether
695695
// the VL can be optimized. As a result, a white-list of supported
696-
// instructions is used. Over time, more instructions cam be supported
696+
// instructions is used. Over time, more instructions can be supported
697697
// upon careful examination of their semantics under the logic in this
698698
// optimization.
699699
// TODO: Use a better approach than a white-list, such as adding

0 commit comments

Comments
 (0)