This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix extendsidi2_1 splitting (PR rtl-optimization/57281, PR rtl-optimization/57300 wrong-code, alternative)


On Fri, May 17, 2013 at 10:25:01AM +0200, Jakub Jelinek wrote:
> Alternative, so far untested, patch is let the register is not dead splitter
> do its job always during split2 and just fix it up during peephole2, if the
> register was dead.

Now fully bootstrapped/regtested on x86_64-linux and i686-linux.

> 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR rtl-optimization/57281
> 	PR rtl-optimization/57300
> 	* config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
> 	(extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
> 	what the other splitter did if the registers are dead.
> 
> 	* gcc.dg/pr57300.c: New test.
> 	* gcc.c-torture/execute/pr57281.c: New test.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]