https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68695
Jeffrey A. Law changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68695
--- Comment #25 from Vladimir Makarov ---
Author: vmakarov
Date: Tue Mar 29 16:20:39 2016
New Revision: 234527
URL: https://gcc.gnu.org/viewcvs?rev=234527&root=gcc&view=rev
Log:
2016-03-29 Vladimir Makarov
PR rtl-optimization/68695
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68695
Jeffrey A. Law changed:
What|Removed |Added
Priority|P1 |P2
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68695
--- Comment #23 from Vladimir Makarov ---
(In reply to Jakub Jelinek from comment #22)
> Going back to variants of the original testcase:
> int
> foo (int x, int y, int a)
> {
> int i = x;
> int j = y;
> #ifdef EX1
> if (__builtin_expect (x
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68695
--- Comment #22 from Jakub Jelinek ---
Going back to variants of the original testcase:
int
foo (int x, int y, int a)
{
int i = x;
int j = y;
#ifdef EX1
if (__builtin_expect (x > y, 1))
#elif defined EX0
if (__builtin_expect (x > y, 0))
#
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68695
--- Comment #21 from Jakub Jelinek ---
int
foo (int x, int y, int a)
{
int i = x;
int j = y;
if (__builtin_expect (x > y, 0))
{
i = a;
j = i;
}
return i * j;
}
shows that even without if IRA does the right job we get t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68695
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68695
Richard Biener changed:
What|Removed |Added
Priority|P3 |P1
Status|UNCONFIRMED