This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/41244] "&data[i] - data" isn't converted to "i"


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2009-09-03 14:12:37         |2016-9-3

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
On the trunk (on aarch64) we get:
  long int _4;
  long int _5;
  int _7;
  sizetype _10;

  <bb 2>:
  _10 = i_6(D) w* 4;
  _4 = (long int) _10;
  _5 = _4 /[ex] 4;
  _7 = (int) _5;


Which is better.

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