[Bug inline-asm/63900] memory constrains needlessly doing memory clobber

aph at redhat dot com gcc-bugzilla@gcc.gnu.org
Sun Nov 16 10:55:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63900

Andrew Haley <aph at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aph at redhat dot com

--- Comment #2 from Andrew Haley <aph at redhat dot com> ---
(In reply to Andrew Pinski from comment #1)
> (In reply to David from comment #0)
> > Change MYSIZE to 3 (or 12, 1000, 0xfffffff, etc) we see the value getting
> > read from memory before calling printf, indicating the asm performed a full
> > clobber (affecting buff2) instead of just clobbering buff as was intended.
> 
> So that is just an optimization anyways.  So closing as invalid.

Why is this invalid?  Looks like a missed-optimization to me.



More information about the Gcc-bugs mailing list