[Bug tree-optimization/68027] uncprop should work on more than PHI nodes

2021-08-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68027

--- Comment #6 from Andrew Pinski  ---
(In reply to SztfG from comment #4)
> I think this can be optimized in this way:
> 
> cmpl$100, %edi
> jg  a1
> jne a2
> jmp a3

Note that is a different bug and should be filed seperately.  Something about
conditional tail calls.  I thought there was a bug filed for that case but I
can't seem to find it.

[Bug tree-optimization/68027] uncprop should work on more than PHI nodes

2021-08-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68027

Andrew Pinski  changed:

   What|Removed |Added

Summary|conditional statement and   |uncprop should work on more
   |unnecessary register|than PHI nodes
   |assignment  |
   Severity|normal  |enhancement

--- Comment #5 from Andrew Pinski  ---
tree-ssa-uncprop.c does some of this but only handles PHI nodes currrently.
Note ICC and MSVC generate the code without the move while GCC and clang both
do the move.