[Bug tree-optimization/88932] [8/9 Regression] ICE: verify_ssa failed (Error: definition in block 29 does not dominate use in block 25)

2019-01-31 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88932 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #4

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2018-03-04 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28364 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment

[Bug tree-optimization/82965] [8 regression][armeb] gcc.dg/vect/pr79347.c starts failing after r254379

2018-02-17 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82965 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment

[Bug tree-optimization/68576] scev failed for loop auto parallelize

2015-11-29 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68576 --- Comment #6 from bin.cheng --- Hmm, at least for this case, lim should be aware that lim candidate doesn't invoke undefined overflow when it is not executed after entering target loop. Thus we don't need to rewrite it in unsigned arithmetic.

[Bug tree-optimization/68576] scev failed for loop auto parallelize

2015-11-29 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68576 --- Comment #5 from bin.cheng --- The type conversion comses from lim, below code: /* In case this is a stmt that is not unconditionally executed when the target loop header is executed and the stmt may invoke undefined in

[Bug tree-optimization/68576] scev failed for loop auto parallelize

2015-11-29 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68576 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #4

[Bug tree-optimization/68529] scev failed for while(i--)

2015-11-25 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68529 --- Comment #5 from bin.cheng --- The dump before ldist is as below: foo1 () { unsigned int nchar; char c[1]; : c = {}; : # nchar_14 = PHI c[nchar_14] = 65; nchar_5 = nchar_14 + 4294967295; if (nchar_14 != 0) goto ;

[Bug tree-optimization/67921] [6 Regression] "internal compiler error: in build_polynomial_chrec, at tree-chrec.h:147" when using -fsanitize=undefined

2015-10-18 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67921 --- Comment #7 from bin.cheng --- Hmm, this issue could be simply because chrec_fold_multiply doesn't use sizetype as CHREC_RIGHT's type to build pointer type CHREC: return build_polynomial_chrec (CHREC_VARIABLE (op0),

[Bug tree-optimization/67921] [6 Regression] "internal compiler error: in build_polynomial_chrec, at tree-chrec.h:147" when using -fsanitize=undefined

2015-10-18 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67921 --- Comment #6 from bin.cheng --- The fact is GCC calls function: chrec_fold_minus (type, chrec1, chrec2) // type == sizetype // chrec1 == 4 - (sizetype) &c // chrec2 == (sizetype) ((int *) p1_8(D) + ((sizetype) a_23

[Bug tree-optimization/67921] [6 Regression] "internal compiler error: in build_polynomial_chrec, at tree-chrec.h:147" when using -fsanitize=undefined

2015-10-17 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67921 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #5

[Bug rtl-optimization/62151] [5 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2014-12-10 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62151 --- Comment #15 from bin.cheng --- Hmm, words on tem_insn issue at the end of comment #12 isn't mature. It's more complicated than that. Turns out live range of register which is noted as DEAD in i1/i2 can be extended because we propagate its u

[Bug rtl-optimization/62151] [5 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2014-12-09 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62151 --- Comment #13 from bin.cheng --- The check itself is suspicious too. Why do we want to check elim_i2/elim_i1 when distributing REG_DEAD note from i1?

[Bug rtl-optimization/62151] [5 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2014-12-09 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62151 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com

[Bug middle-end/62178] [5.0 regression] [AArch64] Performance regression on matrix matrix multiply due to r211211

2014-11-24 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62178 --- Comment #5 from bin.cheng --- Now I think the patch proposed isn't good enough. I am revisiting the implementation to see if I can improve the existing algorithm, rather than just adding another heuristic pass.

[Bug target/58623] lack of ldp/stp optimization

2014-11-18 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58623 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #3

[Bug target/62173] [5.0 regression] [AArch64] Performance regression due to r213488

2014-11-16 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62173 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #6

[Bug tree-optimization/63411] [4.9/5 regression] ivopt produces wrong struct offset

2014-09-29 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63411 --- Comment #2 from bin.cheng --- (In reply to Oleg Endo from comment #0) > Compiling the following as C or C++: > > typedef struct > { > unsigned char sprindex; > unsigned char y; > unsigned char index; > unsigned char attr; > unsigne

[Bug tree-optimization/49444] IV-OPTs changes an unaligned loads into aligned loads incorrectly

2014-09-03 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49444 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #8

[Bug tree-optimization/62631] gcc.dg/tree-ssa/ivopts-lt-2.c FAILs

2014-09-01 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62631 --- Comment #4 from bin.cheng --- Hi Rainer, This is caused by abnormal huge cost of function call `shiftadd_cost (true, DImode, 2)'. It returns 100+ cost, resulting in huge cost when representing use 1 with cand 4: use 1 compare in stateme

[Bug driver/62290] New: --print-file-name doesn't work for liblto_plugin.so

2014-08-28 Thread amker.cheng at gmail dot com
onent: driver Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com At least with revision@214413, gcc configured with below options on x86_64. $ ../gcc/configure --prefix=../target/ --enable-languages=c,c++,ada,fortran,java,objc,obj-c++,go O

[Bug target/62178] [AArch64] Performance regression on matrix matrix multiply due to r211211

2014-08-19 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62178 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #3

[Bug c++/62150] New: test case g++.dg/ext/arm-fp16/fp16-mangle-1.C failed on ARM

2014-08-14 Thread amker.cheng at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com Hi, The test case is like below. /* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* Test mangling */ /* { dg-fi

[Bug libstdc++/62118] New: cases under libstdc++-v3/testsuite/ext/ failed on aarch64/arm

2014-08-13 Thread amker.cheng at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com Hi, Revision 213779 causes lots cases under libstdc++-v3/testsuite/ext/ failed on aarch64-none-elf and arm-none-eabi. The log message is like In file

[Bug target/62025] [4.9/4.10 Regression] Miscompilation of openssl sha512.c

2014-08-12 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62025 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment

[Bug ipa/61659] [4.9/4.10 Regression] Extra undefined symbol because of devirtualization

2014-08-11 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment

[Bug tree-optimization/62032] FAIL: vsnprintf-chk.c execution, -O2 -flto -fno-use-linker-plugin -flto-partition=none

2014-08-07 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62032 --- Comment #3 from bin.cheng --- I did some investigation and think it's a latent bug of lto which reveaded by r213585. Before the revision, pass_fold_builtins::execute calls gimple_fold_builtins directly to fold __builtin___vsnprintf_chk (_26,

[Bug tree-optimization/62032] FAIL: vsnprintf-chk.c execution, -O2 -flto -fno-use-linker-plugin -flto-partition=none

2014-08-06 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62032 --- Comment #1 from bin.cheng --- Only fail with lto options.

[Bug tree-optimization/62032] New: FAIL: vsnprintf-chk.c execution, -O2 -flto -fno-use-linker-plugin -flto-partition=none

2014-08-06 Thread amker.cheng at gmail dot com
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com Created attachment 33256 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33256&action=edit tarball of dump fi

[Bug target/61411] [NEON] ICE in reload_cse_simplify_operands, at postreload.c:411

2014-06-05 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61411 --- Comment #3 from bin.cheng --- Then I think it's a latent bug in LRA. It should consult back-end about legitimized address expressions.

[Bug target/61411] [NEON] ICE in reload_cse_simplify_operands, at postreload.c:411

2014-06-04 Thread amker.cheng at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61411 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com

[Bug target/61367] New: Annoying rtx cost information in middle end dumps on arm/aarch64 targets

2014-05-29 Thread amker.cheng at gmail dot com
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com Created attachment 32877 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32877&action=edit zipped dump files. Given a simple progr

[Bug tree-optimization/60363] [4.9/4.10 Regression]: logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4

2014-05-06 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60363 --- Comment #15 from bin.cheng --- Should be fixed now.

[Bug tree-optimization/60363] [4.9 Regression]: logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4

2014-03-31 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60363 --- Comment #10 from bin.cheng --- Patch sent at http://gcc.gnu.org/ml/gcc-patches/2014-03/msg00857.html , but it need to wait for stage 1. I will xfail it for now.

[Bug target/53090] suboptimal ivopt

2014-03-29 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53090 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #2

[Bug target/58424] [ARM]gcc.target/arm/pr42575.c failed on arm

2014-03-12 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58424 --- Comment #2 from bin.cheng --- Yes, It works for below combination of options: -mthumb -mcpu=cortex-m4 -mthumb/-marm -march=armv7-a/-mcpu=cortex-a7 But still happens for: -mthumb -mcpu=cortex-m3 -mthumb/-marm -mcpu=cortex-a7/-mcpu=corte

[Bug regression/60363] [4.9 Regression]: logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4

2014-03-12 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60363 --- Comment #7 from bin.cheng --- The problem has nothing to do with VRP, and might be a missed opportunity of jump threading. The dump after VRP but before jump threading at the end of VRP is like: ... : goto ; ... : # kill_elt_3 = P

[Bug regression/60363] [4.9 Regression]: logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4

2014-03-11 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60363 --- Comment #6 from bin.cheng --- After investigation, I think the root cause is: For given mergephi2 dump (before vrp), there are latch(bb13) and header(bb14) of a loop: : # changed_18 = PHI : # changed_1 = PHI # kill_elt_4 = PHI

[Bug regression/60363] [4.9 Regression]: logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4

2014-03-11 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60363 --- Comment #5 from bin.cheng --- Vrp1 generates below code: : if (b_elt_11(D) != 0B) goto ; else goto ; : # kill_elt_10 = PHI goto ; : kill_elt_14 = kill_elt_2->next; : # kill_elt_2 = PHI if (kill_elt_2 != 0B)

[Bug regression/60363] [4.9 Regression]: logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4

2014-03-09 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60363 --- Comment #4 from bin.cheng --- Although may be irrelavant. I found loop's latch doesn't get updated after removing the forwarder latch basic block. Previous patch only catches function remove_forwarder_block, but remove_forwarder_block_with_p

[Bug regression/60363] [4.9 Regression]: logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4

2014-03-09 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60363 --- Comment #3 from bin.cheng --- After patching 208165, there are two more jump threading opportunities for dom1 pass. Jump threading is doing alright, the interesting thing is why there is no such opportunities before patching. I attatched rel

[Bug regression/60363] [4.9 Regression]: logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4

2014-03-09 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60363 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #2

[Bug tree-optimization/60280] [4.9 Regression] gcc.target/arm/ivopts.c and gcc.target/arm/ivopts-2.c failed caused by preserving loop structure.

2014-02-25 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60280 bin.cheng changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/60280] [4.9 Regression] gcc.target/arm/ivopts.c and gcc.target/arm/ivopts-2.c failed caused by preserving loop structure.

2014-02-20 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60280 --- Comment #3 from bin.cheng --- I think 4_8 is ok for this case. At least it doesn't have http://gcc.gnu.org/ml/gcc-patches/2013-04/msg01530.html committed if I was right.

[Bug tree-optimization/60280] gcc.target/arm/ivopts.c and gcc.target/arm/ivopts-2.c failed caused by preserving loop structure.

2014-02-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60280 --- Comment #1 from bin.cheng --- It's caused by patch at (revision r198333): http://gcc.gnu.org/ml/gcc-patches/2013-04/msg01530.html After patching, forwarder basic block 6 in below dump didn't get removed: tr4 (short int * array, int n) { int

[Bug tree-optimization/60280] New: gcc.target/arm/ivopts.c and gcc.target/arm/ivopts-2.c failed caused by preserving loop structure.

2014-02-19 Thread amker.cheng at gmail dot com
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com gcc.target/arm/ivopts-2.c is like: /* { dg-do assemble } */ /* { dg-options "-Os -fdump-tree-ivopts -save-

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2014-01-03 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #10 from bin.cheng --- (In reply to Jakub Jelinek from comment #9) > BTW, the patch can hardly regress anything, it only affects cases that ICEd > before the patch. Em, I am worried if vectorization can handle peeled phi correctly for

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2014-01-02 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #7 from bin.cheng --- (In reply to Jakub Jelinek from comment #6) > Created attachment 31562 [details] > gcc49-pr59519.patch > > I wonder if this isn't just a checking issue, the two PHI nodes created in > *new_exit_bb have the same a

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2013-12-20 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #5 from bin.cheng --- For the offending loop: : : # b.4_30 = PHI # prephitmp_28 = PHI # b_lsm.11_13 = PHI # ivtmp_46 = PHI c.1_9 = prephitmp_28 | 1; b.4_12 = b.4_30 + 1; ivtmp_45 = ivtmp_46 - 1; if (ivtmp_45 !

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2013-12-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #4 from bin.cheng --- First clue. b_lsm.11_13 is recognized as chrec {1, +, 1}_2 with the patch, thus the loop can be vectorized now. : : # b.4_30 = PHI # prephitmp_28 = PHI # b_lsm.11_13 = PHI # ivtmp_46 = PHI c.1

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2013-12-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #3

[Bug middle-end/52306] [4.8/4.9 regression] ICE in cselib_record_set, at cselib.c:2158

2013-12-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52306 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #27

[Bug c++/59555] New: bogus error: template with C linkage with preprocessed c++ file

2013-12-19 Thread amker.cheng at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com Created attachment 31478 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31478&action=edit preprocessed c++ file For attached preprocessed file, a

[Bug bootstrap/59536] [4.9 regression] internal compiler error: in cselib_record_set, at cselib.c:2376 breaks m68k-linux bootstrap

2013-12-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59536 --- Comment #13 from bin.cheng --- (In reply to Andreas Schwab from comment #12) > -fno-auto-inc-dec avoids the crash. Dup of #52306? It looks like, AFAICT. Only this time it's blocking bootstrap :(

[Bug bootstrap/59536] [4.9 regression] internal compiler error: in cselib_record_set, at cselib.c:2376 breaks m68k-linux bootstrap

2013-12-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59536 bin.cheng changed: What|Removed |Added CC||bernds at codesourcery dot com,

[Bug bootstrap/59536] [4.9 regression] internal compiler error: in cselib_record_set, at cselib.c:2376 breaks m68k-linux bootstrap

2013-12-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59536 --- Comment #10 from bin.cheng --- The offending loop before IVOPT is like: : # var_index_1889 = PHI <1(924), var_index_983(923)> # var_index.250_1269 = PHI <1(924), var_index.250_1959(923)> if (var_index.250_1269 < _1237) goto ; el

[Bug bootstrap/59536] [4.9 regression] internal compiler error: in cselib_record_set, at cselib.c:2376 breaks m68k-linux bootstrap

2013-12-18 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59536 --- Comment #9 from bin.cheng --- Turns out my crossed bare-metal tool works after deleting all preprocessed "# xxx file" lines, but why these lines matter?

[Bug bootstrap/59536] [4.9 regression] internal compiler error: in cselib_record_set, at cselib.c:2376 breaks m68k-linux bootstrap

2013-12-18 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59536 --- Comment #8 from bin.cheng --- (In reply to Andreas Schwab from comment #1) > Between r205951 and r205984. (In reply to H.J. Lu from comment #7) > (In reply to bin.cheng from comment #6) > > Hi, > > Sorry I don't have m68k environment to do th

[Bug bootstrap/59536] [4.9 regression] internal compiler error: in cselib_record_set, at cselib.c:2376 breaks m68k-linux bootstrap

2013-12-18 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59536 --- Comment #6 from bin.cheng --- Hi, Sorry I don't have m68k environment to do the bootstrap, could anyone help dump "-fdump-tree-all-details -fdump-rtl-all-slim" with and without the patch for me? Otherwise I have to revert the patch and hold i

[Bug bootstrap/59536] [4.9 regression] internal compiler error: in cselib_record_set, at cselib.c:2376 breaks m68k-linux bootstrap

2013-12-18 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59536 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #5

[Bug tree-optimization/50955] [4.7 Regression] IVopts incorrectly rewrite the address of a global memory access into a local form.

2013-12-18 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50955 --- Comment #19 from bin.cheng --- > > >not about an iv use appearing in memory reference while not marked as > >address_p, and can be fixed by revise the existing check condition, is > >it true? > > No, even expressing an address this way is br

[Bug tree-optimization/50955] [4.7 Regression] IVopts incorrectly rewrite the address of a global memory access into a local form.

2013-12-18 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50955 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #17

[Bug tree-optimization/52272] [4.7/4.8/4.9 regression] Performance regression of 410.bwaves on x86.

2013-12-17 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52272 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #21

[Bug tree-optimization/59479] Inlining of static function bloats code size when Os

2013-12-13 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59479 --- Comment #2 from bin.cheng --- I will investigate it later. Just clarifying, the function is called three times by the caller, it would increase code size usually. BTW, could you explain a little about "2nd-order effect"? I am not familiar w

[Bug middle-end/39838] [4.7/4.8/4.9 regression] unoptimal code for two simple loops

2013-12-13 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39838 --- Comment #16 from bin.cheng --- For optimization level O2, the dump before IVOPT is like: : _21 = p_6(D)->count; if (_21 > 0) goto ; else goto ; : : # i_26 = PHI if (count_8(D) > 0) goto ; else goto ; :

[Bug middle-end/39838] [4.7/4.8/4.9 regression] unoptimal code for two simple loops

2013-12-13 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39838 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #15

[Bug tree-optimization/59445] [4.9 Regression] ICE in add_old_iv_candidates, at tree-ssa-loop-ivopts.c:2541

2013-12-12 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59445 --- Comment #18 from bin.cheng --- Hi Dominique d'Humieres, Thanks for verifying it.

[Bug tree-optimization/59479] New: Inlining of static function bloats code size when Os

2013-12-11 Thread amker.cheng at gmail dot com
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com Created attachment 31424 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31424&action=edit The preprocessed file for newlib/libc/stdio/findfp.c Hi, for attached prepr

[Bug tree-optimization/59445] [4.9 Regression] ICE in add_old_iv_candidates, at tree-ssa-loop-ivopts.c:2541

2013-12-11 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59445 --- Comment #16 from bin.cheng --- I fixed the reported problem and posted new patch at http://gcc.gnu.org/ml/gcc-patches/2013-12/msg01159.html Apology that I missed java in bootstrap for previous patch. This version passes bootstrap and test for

[Bug tree-optimization/59445] [4.9 Regression] ICE in add_old_iv_candidates, at tree-ssa-loop-ivopts.c:2541

2013-12-10 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59445 --- Comment #15 from bin.cheng --- Created attachment 31414 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31414&action=edit The generated assembly with/without patch for code in comment #9 on cortex-m3

[Bug tree-optimization/59445] [4.9 Regression] ICE in add_old_iv_candidates, at tree-ssa-loop-ivopts.c:2541

2013-12-10 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59445 --- Comment #14 from bin.cheng --- I found out the root cause of this ICE and will use the simplified code given by comment#9 as an example. The gimple dump before IVOPT is like: : : # c_2 = PHI __val_comp_iter (D.4949); p2 = D.4950;

[Bug tree-optimization/59445] [4.9 Regression] ICE in add_old_iv_candidates, at tree-ssa-loop-ivopts.c:2541

2013-12-10 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59445 --- Comment #13 from bin.cheng --- Sorry for bothering, I have reverted the patch. Will investigate it.

[Bug tree-optimization/39200] ivopts slows down SciMark sparse matrix benchmark

2013-11-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39200 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #1

[Bug rtl-optimization/50749] Auto-inc-dec does not find subsequent contiguous mem accesses

2013-09-30 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50749 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #15

[Bug rtl-optimization/55190] [SH] ivopts causes loop setup bloat

2013-09-30 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55190 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot com --- Comment #3

[Bug target/58424] New: [ARM]gcc.target/arm/pr42575.c failed on arm

2013-09-15 Thread amker.cheng at gmail dot com
: target Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com gcc is at revision r202599 and is configured as: ../gcc/configure build=i686-linux-gnu host=i686-linux-gnu target=arm-none-eabi prefix=.../trunk-orig/target/ disable-decimal-float disable-libffi

[Bug target/58423] New: [ARM]ICE with shrink-wrap-sibcall.c on a15/neon/hard

2013-09-15 Thread amker.cheng at gmail dot com
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com GCC ICEed with shrink-wrap-sibcall.c on a15 with below command line: ./arm-none-eabi-gcc -O2 -marm -mcpu=cortex-a15 -mfpu=neon -mfloat-abi=hard shrink-wrap-sibcall.c -S -o shrink-wrap

[Bug target/57540] stack pointer related loop invariants after reload for ARM mode

2013-08-06 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57540 bin.cheng changed: What|Removed |Added Component|middle-end |target --- Comment #4 from bin.cheng --- Sor

[Bug target/56102] Wrong rtx cost calculated for Thumb1

2013-08-06 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56102 bin.cheng changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/57540] stack pointer related loop invariants after reload for ARM mode

2013-06-09 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57540 --- Comment #3 from bin.cheng --- I think this should be handled in expand. During expanding, GCC tries "base + scaled_offset + offset" pattern, which is invalid for targets like arm. At this point we still have a chance to refactor "base + offse

[Bug target/57540] stack pointer related loop invariants after reload

2013-06-07 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57540 bin.cheng changed: What|Removed |Added Component|rtl-optimization|target --- Comment #2 from bin.cheng --- Thi

[Bug rtl-optimization/57540] stack pointer related loop invariants after reload

2013-06-06 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57540 --- Comment #1 from bin.cheng --- The dump of loop_init is like, 72: r178:SI=0 106: L106: 90: NOTE_INSN_BASIC_BLOCK 6 91: r178:SI=r178:SI+0x1 94: r190:SI=r177:SI<<0x2 REG_DEAD r177:SI 95: r191:SI=sfp:SI+r190:SI REG_DEA

[Bug rtl-optimization/57540] New: stack pointer related loop invariants after reload

2013-06-06 Thread amker.cheng at gmail dot com
Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com For below program, void foo ( unsigned char *len, int alphaSize, int maxLen ) { int i, j, k; unsigned char tooLong

[Bug rtl-optimization/56124] Redundant reload for loading from memory

2013-04-18 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56124 bin.cheng changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug tree-optimization/56139] New: unmodified static data could go in .rodata, not .data

2013-01-29 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56139 Bug #: 56139 Summary: unmodified static data could go in .rodata, not .data Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: enh

[Bug rtl-optimization/56124] Redundant reload for loading from memory

2013-01-27 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56124 --- Comment #1 from bin.cheng 2013-01-28 02:43:10 UTC --- The root cause is in ira:scan_one_insn function. It decrease cost of memory for pseudo which are target of loading from memory: if (set != 0 && REG_P (SET_DEST (set)) && MEM_P

[Bug rtl-optimization/56124] New: Redundant reload for loading from memory

2013-01-27 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56124 Bug #: 56124 Summary: Redundant reload for loading from memory Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal

[Bug target/56102] Wrong rtx cost calculated for Thumb1

2013-01-24 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56102 --- Comment #2 from bin.cheng 2013-01-25 07:25:34 UTC --- Created attachment 29270 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29270 correct test case The previous test case is not appropriate, because gcc won't split even with

[Bug target/56102] Wrong rtx cost calculated for Thumb1

2013-01-24 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56102 --- Comment #1 from bin.cheng 2013-01-25 03:46:59 UTC --- I have investigated this issue. GCC uses function init_lower_subreg to initialize costs of MOVE insn with different mode, then uses this information to decompose multi-word pseudo

[Bug target/56102] New: Wrong rtx cost calculated for Thumb1

2013-01-24 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56102 Bug #: 56102 Summary: Wrong rtx cost calculated for Thumb1 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Pr

[Bug target/56058] New: GCC arm-none-eabi build failure

2013-01-20 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56058 Bug #: 56058 Summary: GCC arm-none-eabi build failure Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: major Priority

[Bug tree-optimization/55906] New: suboptimal code generated for post-inc on Thumb1

2013-01-07 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55906 Bug #: 55906 Summary: suboptimal code generated for post-inc on Thumb1 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/54910] ARM: Missed optimization of very simple ctz function

2012-11-28 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54910 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot

[Bug tree-optimization/49498] [4.7/4.8 Regression]: gcc.dg/uninit-pred-8_b.c bogus warning line 20

2012-11-21 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49498 --- Comment #19 from bin.cheng 2012-11-21 13:24:02 UTC --- (In reply to comment #18) > *** Bug 55424 has been marked as a duplicate of this bug. *** Just for the record. If the analysis I gave in Comment #17 is right, this PR reveals an

[Bug tree-optimization/55424] New: [4.8 Regression]gcc.dg/uninit-pred-8_b.c bogus warning line 23 on ARM/Cortex-M0/-Os

2012-11-21 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55424 Bug #: 55424 Summary: [4.8 Regression]gcc.dg/uninit-pred-8_b.c bogus warning line 23 on ARM/Cortex-M0/-Os Classification: Unclassified Product: gcc Version: 4.8.0

[Bug tree-optimization/49498] [4.7/4.8 Regression]: gcc.dg/uninit-pred-8_b.c bogus warning line 20

2012-11-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49498 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot

[Bug target/54989] FAIL: gcc.dg/hoist-register-pressure.c scan-rtl-dump hoist "PRE/HOIST: end of bb .* copying expression" on darwin

2012-10-31 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54989 --- Comment #7 from bin.cheng 2012-10-31 08:45:37 UTC --- I think this is fixed and it's a bug in 4.8.0. Hi Jack, could you verify that it is fixed? Thanks very much.

[Bug other/55031] New: Documentation on RTL GCSE pass is outdated

2012-10-22 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55031 Bug #: 55031 Summary: Documentation on RTL GCSE pass is outdated Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priori

[Bug target/54989] FAIL: gcc.dg/hoist-register-pressure.c scan-rtl-dump hoist "PRE/HOIST: end of bb .* copying expression" on darwin

2012-10-19 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54989 bin.cheng changed: What|Removed |Added CC||amker.cheng at gmail dot

[Bug rtl-optimization/54133] regrename introduces additional dependencies

2012-09-25 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54133 --- Comment #8 from amker.cheng 2012-09-25 07:45:02 UTC --- I have spent some time investigating this bug and now I think I understand the issue. The problematic instruction patterns which save/restore argument/return registers is gener

[Bug target/54414] ARM:mis-compiled prologue/epilogue on cortex-m0 when optimizing with -Os

2012-08-30 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54414 --- Comment #1 from amker.cheng 2012-08-30 10:17:15 UTC --- I suspect that the call of arm_size_return_regs in function thumb1_extra_regs_pushed should also be covered as in http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00830.html

  1   2   >