RE: [PATCH] x86_64: Use peephole2 to eliminate redundant moves.

2020-08-12 Thread Roger Sayle
Log * config/i386/i386.md (peephole2): Reduce unnecessary register shuffling produced by register allocation. Cheers, Roger -- -Original Message- From: Uros Bizjak Sent: 11 August 2020 11:14 To: Roger Sayle Cc: GCC Patches Subject: Re: [PATCH] x86_64: Use peephole2 to

Re: [PATCH] x86_64: Use peephole2 to eliminate redundant moves.

2020-08-11 Thread Uros Bizjak via Gcc-patches
On Tue, Aug 11, 2020 at 9:34 AM Roger Sayle wrote: > > > The recent fix for mul_widen_cost revealed an interesting > quirk of ira/reload register allocation on x86_64. As shown in > https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551648.html > for gcc.target/i386/pr71321.c we generate the f

[PATCH] x86_64: Use peephole2 to eliminate redundant moves.

2020-08-11 Thread Roger Sayle
The recent fix for mul_widen_cost revealed an interesting quirk of ira/reload register allocation on x86_64. As shown in https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551648.html for gcc.target/i386/pr71321.c we generate the following code that performs unnecessary register shuffling.