public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/91459] Tail-Call Optimization is not performed when return value is assumed.
[not found] <bug-91459-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-27 6:00 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-12-27 6:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91459
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2019-08-16 00:00:00 |2021-12-26
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So when DOM3 changes:
result_5 = function_returns_only_1_or_doesnt_return (a_2(D), b_3(D));
if (result_5 == 1)
goto <bb 3>; [100.00%]
else
goto <bb 4>; [0.00%]
<bb 3> [local count: 1073741824]:
return 1;
<bb 4> [count: 0]:
__builtin_unreachable ();
To
result_5 = function_returns_only_1_or_doesnt_return (a_2(D), b_3(D));
return 1;
I wonder if it could change 1 back into result_5 because it comes from a
function call.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-27 6:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-91459-4@http.gcc.gnu.org/bugzilla/>
2021-12-27 6:00 ` [Bug tree-optimization/91459] Tail-Call Optimization is not performed when return value is assumed pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).