[RS6000] PR88311, mlongcall indirections are optimised away
commitad893df7fe10414a66b5beaa4c07db5159ef6a41
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Dec 2018 09:03:50 +0000 (14 09:03 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Dec 2018 09:03:50 +0000 (14 09:03 +0000)
tree2880d6a4e8af9bedc4f6b452ccbae0be613a1997
parent4391aaed541717619453d36ac783eff772a720cb
[RS6000] PR88311, mlongcall indirections are optimised away

Masking CALL_LONG from the cookie was done in order to simplify and
correct length attribute calculations for indirect calls at one point
in my call series tidy when the indirect patterns used alternatives
"0,n" on the cookie operand.  (Leaving the CALL_LONG in place
calculated the wrong length for long calls without fp args.)

This is no longer necessary now that the indirect sysv call patterns
explicitly test for the fp arg bits in their length attribute
expressions.  And without the CALL_LONG to disable insns like
call_value_local_svsv, combine merrily replaces the indirect long call
sequence with a direct call.  As it should.  This patch reinstates
the CALL_LONG bit.

PR rtl-optimization/88311
* config/rs6000/rs6000.c (rs6000_call_sysv): Do not mask cookie.
(rs6000_sibcall_sysv): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267123 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.c