aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net/URLStreamHandler.java
diff options
context:
space:
mode:
authorPan Li <pan2.li@intel.com>2025-08-11 21:22:08 +0800
committerPan Li <pan2.li@intel.com>2025-08-13 07:38:07 +0800
commitf1ac0f805ee25cdf0a8be73a2ef7f6e177c1b72c (patch)
tree38f8192220ecac138a09a36f9d0f62887795549f /libjava/java/net/URLStreamHandler.java
parent980e1fc195325cd4637ce52d0e2b0e7fcc763f60 (diff)
downloadgcc-f1ac0f805ee25cdf0a8be73a2ef7f6e177c1b72c.zip
gcc-f1ac0f805ee25cdf0a8be73a2ef7f6e177c1b72c.tar.gz
gcc-f1ac0f805ee25cdf0a8be73a2ef7f6e177c1b72c.tar.bz2
RISC-V: Combine vec_duplicate + vmerge.vv to vmerge.vx on GR2VR cost
This patch would like to combine the vec_duplicate + vaadd.vv to the vaadd.vx. From example as below code. The related pattern will depend on the cost of vec_duplicate from GR2VR. Then the late-combine will take action if the cost of GR2VR is zero, and reject the combination if the GR2VR cost is greater than zero. Assume we have example code like below, GR2VR cost is 0. #define DEF_VX_MERGE_0(T) \ void \ test_vx_merge_##T##_case_0 (T * restrict out, T * restrict in, \ T x, unsigned n) \ { \ for (unsigned i = 0; i < n; i++) \ { \ if (i % 2 == 0) \ out[i] = x; \ else \ out[i] = in[i]; \ } \ } DEF_VX_MERGE_0(int32_t) Before this patch: 11 │ beq a3,zero,.L8 12 │ vsetvli a5,zero,e32,m1,ta,ma 13 │ vmv.v.x v2,a2 ... 16 │ .L3: 17 │ vsetvli a5,a3,e32,m1,ta,ma ... 22 │ vmerge.vvm v1,v1,v2,v0 ... 25 │ bne a3,zero,.L3 After this patch: 11 │ beq a3,zero,.L8 ... 14 │ .L3: 15 │ vsetvli a5,a3,e32,m1,ta,ma ... 20 │ vmerge.vxm v1,v1,a2,v0 ... 23 │ bne a3,zero,.L3 gcc/ChangeLog: * config/riscv/autovec-opt.md (*merge_vx_<mode>): Add new pattern to combine the vmerge.vxm. Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'libjava/java/net/URLStreamHandler.java')
0 files changed, 0 insertions, 0 deletions