[Bug tree-optimization/96351] New: missed opportunity to optimize out redundant loop

2020-07-28 Thread felix.yang at huawei dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- inline unsigned int stringLen(const short* const src) { if (src == 0 || *src == 0) { return 0; } else { const short* pszTmp = src + 1

[Bug other/96281] New: TBAA does not work as expected for a simple test case

2020-07-22 Thread felix.yang at huawei dot com
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Target: aarch64 Test case: foo.c typedef struct state_t { int threadid; } state_t; int history_h[8][12][64]; void

[Bug tree-optimization/95961] New: ICE: in exact_div, at poly-int.h:2182

2020-06-29 Thread felix.yang at huawei dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Target: aarch64 test case: $ cat foo.c typedef struct { unsigned short mprr_2[5][16][16]; } ImageParameters; int s[16][2]; void intrapred_luma_16x16

[Bug tree-optimization/95570] New: ICE: Segmentation fault in vect_loop_versioning

2020-06-07 Thread felix.yang at huawei dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Target: aarch64 foo.c: int x[8][32]; void foo (int start) { for (int i = start; i < start + 16; i++) x[start][i] = i; } $ gcc -S -O2 -ft

[Bug target/95459] New: aarch64: ICE in in aarch64_short_vector_p, at config/aarch64/aarch64.c:16803

2020-06-01 Thread felix.yang at huawei dot com
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Target: aarch64 Another sve-related ICE issue triggered under option -mgeneral-regs-only. Reduced test case

[Bug target/95254] New: aarch64: gcc generate inefficient code with fixed sve vector length

2020-05-21 Thread felix.yang at huawei dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Target: aarch64 Test case: typedef short __attribute__((vector_size (8))) v4hi; typedef union U4HI { v4hi v; short a

[Bug target/94991] ICE: Segmentation fault with option -mgeneral-regs-only

2020-05-07 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94991 --- Comment #1 from Fei Yang --- For the given testcase, we are doing FAIL for scalar floating move expand pattern since TARGET_FLOAT is false with option -mgeneral-regs-only. But move expand pattern cannot fail. It would be better to to replace

[Bug target/94991] New: ICE: Segmentation fault with option -mgeneral-regs-only

2020-05-07 Thread felix.yang at huawei dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Target: aarch64 Yet another ICE with -mgeneral-regs-only: foo.c struct S { float d; }; void bar (struct S); void f0 (int x

[Bug tree-optimization/94784] ICE: in simplify_vector_constructor, at tree-ssa-forwprop.c:2482

2020-04-27 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94784 --- Comment #2 from Fei Yang --- Will propose a patch for review.

[Bug tree-optimization/94784] ICE: in simplify_vector_constructor, at tree-ssa-forwprop.c:2482

2020-04-27 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94784 --- Comment #1 from Fei Yang --- I did some check and it looks like everything works fine before the ICE. The reason for the assert is that applying VIEW_CONVERT_EXPR to two general vectors is dangerous in this context. If through some bug we e

[Bug tree-optimization/94784] New: ICE: in simplify_vector_constructor, at tree-ssa-forwprop.c:2482

2020-04-27 Thread felix.yang at huawei dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Target: aarch64 I see one gcc_assert was introduce in: https://gcc.gnu.org/pipermail/gcc-patches/2020-April

[Bug target/94678] aarch64: unexpected result with -mgeneral-regs-only and sve

2020-04-21 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94678 --- Comment #1 from Fei Yang --- crash log for test2.c: during RTL pass: expand foo.c: In function 'f2': foo.c:14:10: internal compiler error: in emit_move_insn, at expr.c:3815 14 | return svadd_m (*x, *y, 1); | ^

[Bug target/94678] New: aarch64: unexpected result with -mgeneral-regs-only and sve

2020-04-21 Thread felix.yang at huawei dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com CC: richard.sandiford at arm dot com Target Milestone: --- Target: aarch64 It looks like there are several issues out there for

[Bug tree-optimization/94269] New: widening_mul should consider block frequency

2020-03-23 Thread felix.yang at huawei dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Test case: float calc(long n, float *x, int inc_x, float *y, int inc_y) { float dot = 0.0; int ix = 0, iy = 0; if (n < 0) { return

[Bug rtl-optimization/94026] combine missed opportunity to simplify comparisons with zero

2020-03-15 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026 --- Comment #4 from Fei Yang --- (In reply to Fei Yang from comment #0) > Created attachment 47966 [details] > proposed patch to fix this issue > > Simple test case: > int > foo (int c, int d) > { > int a = (c >> d) & 7; > > if (a >= 2) { >

[Bug rtl-optimization/94026] combine missed opportunity to simplify comparisons with zero

2020-03-12 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026 --- Comment #2 from Fei Yang --- The test case is reduced from spec2017 benchmark. int FastBoard::count_pliberties(const int i) { return count_neighbours(EMPTY, i); } // count neighbours of color c at vertex v int FastBoard::count_neighbour

[Bug rtl-optimization/94026] New: combine missed opportunity to simplify comparisons with zero

2020-03-04 Thread felix.yang at huawei dot com
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Created attachment 47966 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47966&action=edit proposed patch to f

[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 --- Comment #4 from Fei Yang --- (In reply to Markus Trippelsdorf from comment #2) > You're invoking undefined behavior: test.c:34:12: runtime error: store to > misaligned address 0x00401c8c for type 'unsigned char *', which requires > 8 byt

[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 --- Comment #1 from Fei Yang --- Also reproducible with GCC-5 and GCC-6.

[Bug tree-optimization/66804] New: Alignment issue caused by auto vectorization

2015-07-08 Thread felix.yang at huawei dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com CC: rguenther at suse dot de Target Milestone: --- Host: x86_64-SUSE-LINUX Target: x86_64 Build: x86_64-SUSE-LINUX testcase