[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 Andrew Macleod changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #11 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:004afb984beb6efbe25f44a5857b1c27ebc2ec82 commit r12-4921-g004afb984beb6efbe25f44a5857b1c27ebc2ec82 Author: Andrew MacLeod Date:

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #10 from Andrew Macleod --- That patch wont generally work until rangeops op1_range routines are adjusted to deal with undefined being passed in.. I think it assumes until now that its been trimmed out. (In reply to Richard Biener

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #9 from Andrew Macleod --- Created attachment 51735 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51735=edit patch for the undefined bit (In reply to Richard Biener from comment #7) > === BB 2 > Imports:

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #8 from Richard Biener --- Btw, I find the vrp-details dump not really useful with all the ranger "debug" appearing _after_ the folding of stmts. Can we instead have this somehow interleaved?

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #7 from Richard Biener --- === BB 2 Imports: b.0_1 t_4(D) Exports: b.0_1 t_4(D) _6 _6 : b.0_1(I) t_4(D)(I) t_4(D) UNDEFINED [local count: 176285970]: b.0_1 = b; _6 = b.0_1 | t_4(D);

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #6 from Andrew Pinski --- VRP2: Predicate evaluates to: DON'T KNOW Matching expression match.pd:1972, gimple-match.c:819 Matching expression match.pd:1975, gimple-match.c:892 Matching expression match.pd:1982, gimple-match.c:952 Not

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #5 from Martin Liška --- > static int c() { > if (b) > return b; > } Yes, one can use the return value as long as the function returns a value. This means, c() can be used iff b != 0.

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > The problem is latent though. The issue is reassociatation introduces an > unconditional use of an uninitilized vairable: Whoops that is not the issue here

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #3 from Andrew Pinski --- The problem is latent though. The issue is reassociatation introduces an unconditional use of an uninitilized vairable: Before if (b.1_3 != 0) goto ; [34.00%] else goto ; [66.00%] [local

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 Martin Liška changed: What|Removed |Added Keywords||wrong-code See Also|

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 Martin Liška changed: What|Removed |Added Summary|wrong code at -Os and -O2 |[12 Regression] wrong code