File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ bool RISCVVLOptimizer::isCandidate(const MachineInstr &MI) const {
660
660
// If we're not using VLMAX, then we need to be careful whether we are using
661
661
// TA/TU when there is a non-undef Passthru. But when we are using VLMAX, it
662
662
// 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 .
664
664
unsigned VLOpNum = RISCVII::getVLOpNum (Desc);
665
665
const MachineOperand &VLOp = MI.getOperand (VLOpNum);
666
666
if (VLOp.isReg () || VLOp.getImm () != RISCV::VLMaxSentinel) {
@@ -693,7 +693,7 @@ bool RISCVVLOptimizer::isCandidate(const MachineInstr &MI) const {
693
693
// lower lanes using data from higher lanes. There may be other complex
694
694
// semantics not mentioned here that make it hard to determine whether
695
695
// 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
697
697
// upon careful examination of their semantics under the logic in this
698
698
// optimization.
699
699
// TODO: Use a better approach than a white-list, such as adding
You can’t perform that action at this time.
0 commit comments