RFC: allowing fwprop to propagate subregs

Paolo Bonzini bonzini@gnu.org
Wed Jan 11 19:12:00 GMT 2012


On 01/11/2012 05:55 PM, Ulrich Weigand wrote:
> In either case, it is always odd to have RTX in the insn stream
> that isn't "stable" under common simplication ...   Do you have
> any suggestions on how to fix this?  If we add the fwprop patch,
> should we then disable apply_distributive_law for SUBREGs?

This strange canonicalization is also the cause of PR39726, where I also 
wanted to move subregs inside arithmetic operations.  See the attached 
patch (which is not enough to fix the PR; this is just the combine part).

Unfortunately, doing this also caused x86_64 regressions, I think in 
zero_extract patterns.

Paolo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subreg-canon.patch
Type: text/x-patch
Size: 5830 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120111/7aa2874d/attachment.bin>


More information about the Gcc-patches mailing list