[Bug tree-optimization/89804] optimization opportunity: move variable from stack to register

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 24 21:18:00 GMT 2019


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-24
          Component|other                       |tree-optimization
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is the testcase (and removed use of the headers):
typedef unsigned long long uint64_t;

uint64_t uint5korr(const unsigned char *p)
{
  uint64_t result = 0;
  __builtin_memcpy(&result, p, 5);
  return result;
}
---- CUT ---


More information about the Gcc-bugs mailing list