Hi Jakub,

On Tue, Apr 24, 2018 at 09:52:29AM +0200, Jakub Jelinek wrote:
> The following patch adjusts the const_load_sequence_p predicate to match
> what the replace_swapped_load_constant function guarded by it expects.
> 
> On the testcase base is a CONSTANT_POOL_ADDRESS_P SYMBOL_REF, but it
> contains an address of a static data member + 8, so not a CONST_VECTOR nor
> a CONSTANT_POOL_ADDRESS_P SYMBOL_REF.

Okay for trunk (and backports where needed).  Thanks!  Some day we should
figure out why we need this hack.  But not today I guess :-)


Segher


> 2018-04-24  Jakub Jelinek  <ja...@redhat.com>
> 
>       PR target/85503
>       * config/rs6000/rs6000-p8swap.c (const_load_sequence_p): Punt if
>       const_vector is not CONST_VECTOR or SYMBOL_REF for a constant pool
>       containing a CONST_VECTOR.
> 
>       * g++.dg/ext/pr85503.C: New test.

Reply via email to