Re: [PATCH] RISC-V:Auto vect for vector bf16

2024-10-17 Thread 钟居哲
zhe.zh...@rivai.ai From: Feng Wang Date: 2024-10-16 22:10 To: gcc-patches CC: kito.cheng; juzhe.zhong; Feng Wang Subject: [PATCH] RISC-V:Auto vect for vector bf16 This patch add auto-vect patterns for vector-bfloat16 extension. Similar to vector extensions, these patterns can use vector BF16 instru

[PATCH] RISC-V:Auto vect for vector bf16

2024-10-16 Thread Feng Wang
This patch add auto-vect patterns for vector-bfloat16 extension. Similar to vector extensions, these patterns can use vector BF16 instructions to optimize the automatic vectorization of for loops. gcc/ChangeLog: * config/riscv/vector-bfloat16.md (extend2): Add auto-vect pattern for