> Below is one patch, more in the spirit of > https://gcc.gnu.org/ml/gcc-patches/2016-04/msg00418.html > where we refuse to add REG_EQUAL note in that case. > > Attached is another variant, which keeps it around just in case something > would make use of it, but makes sure we don't fwprop into such REG_EQUAL > notes replacing a paradoxical subreg in there with something else. > > Both patches were bootstrapped/regtested on > {x86_64,i686,powerpc64le,s390x,aarch64}-linux, ok for trunk (which one)? > > 2019-03-13 Jakub Jelinek <ja...@redhat.com> > > PR rtl-optimization/89679 > * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it > would contain a paradoxical SUBREG.
My vote would be for this one. -- Eric Botcazou