[gcc(refs/vendors/riscv/heads/gcc-15-with-riscv-opts)] RISC-V: Add missed DONE for vx combine pattern [NFC]

Jeff Law law@gcc.gnu.org
Fri Jan 30 06:57:18 GMT 2026


https://gcc.gnu.org/g:1bd712d7641fcde03d9f028e577cd665b4c6f8f1

commit 1bd712d7641fcde03d9f028e577cd665b4c6f8f1
Author: Pan Li <pan2.li@intel.com>
Date:   Sat Aug 16 16:01:40 2025 +0800

    RISC-V: Add missed DONE for vx combine pattern [NFC]
    
    The previous patch missed the DONE indicator of the vx
    combine pattern.  Thus add it back.
    
    gcc/ChangeLog:
    
            * config/riscv/autovec-opt.md: Add missed DONE
            for vx combine pattern.
    
    Signed-off-by: Pan Li <pan2.li@intel.com>
    (cherry picked from commit 756f771f58f79406a08b6d574939b70d895bb613)

Diff:
---
 gcc/config/riscv/autovec-opt.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/config/riscv/autovec-opt.md b/gcc/config/riscv/autovec-opt.md
index 4559d25ff732..f1e592b46b52 100644
--- a/gcc/config/riscv/autovec-opt.md
+++ b/gcc/config/riscv/autovec-opt.md
@@ -1694,6 +1694,8 @@
     riscv_vector::expand_vx_binary_vec_dup_vec (operands[0], operands[2],
 						operands[1], <CODE>,
 						<MODE>mode);
+
+    DONE;
   }
   [(set_attr "type" "vialu")])
 
@@ -1711,6 +1713,8 @@
     riscv_vector::expand_vx_binary_vec_vec_dup (operands[0], operands[1],
 						operands[2], <CODE>,
 						<MODE>mode);
+
+    DONE;
   }
   [(set_attr "type" "vialu")])


More information about the Gcc-cvs mailing list