Commit a841099
committed
[RISCV][VLOPT] Fix operand check in isVectorOpUsedAsScalarOp
A reduction instruction always has a passthru operand, so the scalar operand should always be vs1 which is at index 3.
Even though the destination operand is also scalar, I think the passthru will need to preserve all elements so I haven't included it.1 parent 2057a45 commit a841099
File tree
2 files changed
+3
-5
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
| 614 | + | |
| 615 | + | |
618 | 616 | | |
619 | 617 | | |
620 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments