[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2017-04-11 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #18 from amker at gcc dot gnu.org --- Author: amker Date: Tue Apr 11 08:15:51 2017 New Revision: 246833 URL: https://gcc.gnu.org/viewcvs?rev=246833&root=gcc&view=rev Log: Backport from mainline 2016-02-10 Bin Cheng

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-10 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #16 from amker at gcc dot gnu.org --- Author: amker Date: Wed Feb 10 14:09:05 2016 New Revision: 233269 URL: https://gcc.gnu.org/viewcvs?rev=233269&root=gcc&view=rev Log: PR tree-optimization/68021 * tree-ssa-loop-ivo

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-09 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #15 from amker at gcc dot gnu.org --- Though the previous patch can work, I am testing another patch less intrusive.

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #14 from Jakub Jelinek --- (In reply to amker from comment #13) > Hmm, I posted a patch at > https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00447.html > But after digging deeper I think the posted is unnecessary and it should be > fixe

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-08 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #13 from amker at gcc dot gnu.org --- Hmm, I posted a patch at https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00447.html But after digging deeper I think the posted is unnecessary and it should be fixed in fold stuff. The ivopt logic i

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-05 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #12 from Richard Biener --- (In reply to Jakub Jelinek from comment #11) > void bar (void); > > void > foo (int p2, int p3) > { > unsigned long a = p2; > unsigned long b = (~(unsigned long) ((unsigned int) p3 + -1U)) + a; > uns

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #11 from Jakub Jelinek --- void bar (void); void foo (int p2, int p3) { unsigned long a = p2; unsigned long b = (~(unsigned long) ((unsigned int) p3 + -1U)) + a; unsigned long c = (a - (unsigned long) ((unsigned int) p3 + -1U))

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-04 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #10 from amker at gcc dot gnu.org --- This is an ivopt bug all the time. As designed, ivopt tries to identify and reuse induction variables in the original input. Apparently we don't need to compute such original biv with new code be

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-04 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #9 from amker at gcc dot gnu.org --- Sorry for missing this. I will study the case.

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-02-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 Jakub Jelinek changed: What|Removed |Added CC||amker at gcc dot gnu.org --- Comment #8

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-01-13 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2016-01-06 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 Markus Trippelsdorf changed: What|Removed |Added CC||doko at gcc dot gnu.org --- Commen

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2015-11-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #6

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2015-10-21 Thread ysrumyan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #5 from Yuri Rumyantsev --- Hi HJ I added my evaluation to bug. It looks like my changes are not responsible for ICE. 2015-10-20 13:20 GMT+03:00 hjl.tools at gmail dot com : > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 > > H

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2015-10-21 Thread ysrumyan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #4 from Yuri Rumyantsev --- Indeed, there is an issue with outer-loop unswitching - it should not be performed for infinite loops. But if we slightly modify test if finite outer-loop we will get the same error: char a; void fn1(char

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2015-10-20 Thread ysrumyan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 --- Comment #3 from Yuri Rumyantsev --- It looks like unswitching of outer loops pass simply triggers the issue and this tree-ssa-loop-ivopts issue.

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2015-10-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2015-10-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 Richard Biener changed: What|Removed |Added Target Milestone|--- |6.0

[Bug tree-optimization/68021] [6 Regression] ice in rewrite_use_nonlinear_expr with -O3

2015-10-19 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68021 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to work|