https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
--- Comment #8 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #6)
> here is a testcase where DOM does not mess with the loop but we should still
> be able to sink the function out and do when adding -fno-tree-pre:
>
> int f(int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
--- Comment #7 from Raphael C ---
As of gcc 8 this returns:
f(int):
mov eax, 1
ret
I think this can be closed as resolved now.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
Andrew Pinski changed:
What|Removed |Added
Status|RESOLVED|NEW
Severity|normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
--- Comment #5 from Raphael C ---
I can confirm you now get
f:
mov eax, 1
ret
with gcc 8 onwards.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
Jeffrey A. Law changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
--- Comment #3 from Richard Biener ---
Ok, so sinking now handles calls but the testcase still isn't fixed because PRE
interferes (testsuite disables PRE).
Still mine.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79201
--- Comment #2 from Richard Biener ---
Author: rguenth
Date: Tue Apr 25 09:26:37 2017
New Revision: 247159
URL: https://gcc.gnu.org/viewcvs?rev=247159&root=gcc&view=rev
Log:
2017-04-25 Richard Biener
PR tree-optimization/79201