File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -3502,17 +3502,9 @@ bool RISCVDAGToDAGISel::performCombineVMergeAndVOps(SDNode *N) {
3502
3502
return false ;
3503
3503
3504
3504
// This transformation is illegal for viota.m when Mask is not a true mask.
3505
- switch (True->getMachineOpcode ()) {
3506
- case RISCV::PseudoVIOTA_M_MF8:
3507
- case RISCV::PseudoVIOTA_M_MF4:
3508
- case RISCV::PseudoVIOTA_M_MF2:
3509
- case RISCV::PseudoVIOTA_M_M1:
3510
- case RISCV::PseudoVIOTA_M_M2:
3511
- case RISCV::PseudoVIOTA_M_M4:
3512
- case RISCV::PseudoVIOTA_M_M8:
3505
+ if (RISCV::getRVVMCOpcode (True->getMachineOpcode ()) == RISCV::VIOTA_M)
3513
3506
if (Mask && !usesAllOnesMask (Mask, Glue))
3514
3507
return false ;
3515
- }
3516
3508
3517
3509
unsigned TrueOpc = True.getMachineOpcode ();
3518
3510
const MCInstrDesc &TrueMCID = TII->get (TrueOpc);
You can’t perform that action at this time.
0 commit comments