[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Fri Apr 13 19:55:15 2018 New Revision: 259378 URL: https://gcc.gnu.org/viewcvs?rev=259378&root=gcc&view=rev Log: PR rtl-optimization/85393 * except.h (expand_dw2_landing_p

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 --- Comment #8 from Jakub Jelinek --- Created attachment 43926 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43926&action=edit gcc8-pr85393.patch Untested fix.

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P1

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 --- Comment #6 from Jakub Jelinek --- Actually, PRE does the right thing; the ~S () call is in bb3 and there is EH edge from there to bb23, which has another EH predecessor, and PRE inserts the initialization of pseudo 123 in that bb23. Then com

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 --- Comment #4 from Jakub Jelinek --- Index 6 (hash value 34; max distance 0) (plus:DI (reg/f:DI 20 frame) (const_int -64 [0xffc0])) scanning new insn with uid = 160. deleting insn with uid = 117. PRE: redundant insn 117 (expre

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 --- Comment #3 from Jakub Jelinek --- Ah, it is the pre pass already, in the dump it dumps the function with (set (reg:DI 108) (plus:DI (frame) (const_int -64))) and later on with (set (reg:DI 108) (reg:DI 123)), but the latter is incorrect.

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 --- Comment #2 from Jakub Jelinek --- Looking at cprop2 now, before that we have: (insn 74 73 75 13 (parallel [ (set (reg/f:DI 108) (plus:DI (reg/f:DI 20 frame) (const_int -64 [0xffc0]))

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 --- Comment #1 from Jakub Jelinek --- Created attachment 43925 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43925&action=edit gcc8-pr85393-test.patch Testcase in patch form.

[Bug rtl-optimization/85393] [8 Regression] Miscompilation with hot/cold partitioning starting with r254832

2018-04-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393 Jakub Jelinek changed: What|Removed |Added Keywords||wrong-code Status|UNCONFIRME