https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92644
--- Comment #5 from Jakub Jelinek ---
Author: jakub
Date: Tue Nov 26 08:43:27 2019
New Revision: 278720
URL: https://gcc.gnu.org/viewcvs?rev=278720&root=gcc&view=rev
Log:
PR tree-optimization/92644
* tree-ssa-phiopt.c (minmax_rep
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92644
--- Comment #4 from Jakub Jelinek ---
Created attachment 47350
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47350&action=edit
gcc10-pr92644.patch
Untested fix.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92644
--- Comment #3 from Richard Biener ---
INTEGRAL_TYPE_P
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92644
--- Comment #2 from Jakub Jelinek ---
For pointers, it boils down whether say
void *
foo (void *p)
{
return p ? p : (void *) 1;
}
optimization into MAX_EXPR <1B, p> is valid or not. The original code doesn't
involve any non-equality comparison
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92644
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|