This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/50176] [4.7 Regression] 4.7 generates spill-fill dealing with char->int conversion
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 Jan 2012 16:06:03 +0000
- Subject: [Bug rtl-optimization/50176] [4.7 Regression] 4.7 generates spill-fill dealing with char->int conversion
- Auto-submitted: auto-generated
- References: <bug-50176-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50176
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-30 16:06:03 UTC ---
Created attachment 26517
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26517
patch
I've tried to implement a hack for this in fwprop (debug insn updating for that
not implemented yet), but it unfortunately doesn't work, as for the zero_extend
load from QImode mem insn we need before reload_completed a CC mode clobber, so
apply_change_group fails. No idea how should such a thing be handled before
reload. Although there is an insn that doesn't need to clobber CC (movzbl for
this testcase), that pattern isn't enabled until reload_completed.