[Bug rtl-optimization/89679] [7/8/9 Regression] wrong code with -Og -frerun-cse-after-loop -fno-tree-fre

2019-03-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89679

--- Comment #6 from Jakub Jelinek  ---
Author: jakub
Date: Thu Mar 14 12:21:36 2019
New Revision: 269680

URL: https://gcc.gnu.org/viewcvs?rev=269680=gcc=rev
Log:
PR rtl-optimization/89679
* expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
would contain a paradoxical SUBREG.

* gcc.dg/pr89679.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/pr89679.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expmed.c
trunk/gcc/testsuite/ChangeLog

[Bug rtl-optimization/89679] [7/8/9 Regression] wrong code with -Og -frerun-cse-after-loop -fno-tree-fre

2019-03-12 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89679

--- Comment #5 from Eric Botcazou  ---
> The other variant would be perhaps more in line with the PR70574 change
> where we don't add REG_EQUAL notes with paradoxical subregs in it.

Yes, that looks like the right thing to do to me.

[Bug rtl-optimization/89679] [7/8/9 Regression] wrong code with -Og -frerun-cse-after-loop -fno-tree-fre

2019-03-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89679

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
  Component|middle-end  |rtl-optimization