[Bug tree-optimization/105751] std::array comparision does not inline memcmp

2022-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105751

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |13.0
 Status|NEW |RESOLVED

--- Comment #3 from Andrew Pinski  ---
Fixed for GCC 13 by r13-4600-gd13b86f932ff7b .

[Bug tree-optimization/105751] std::array comparision does not inline memcmp

2022-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105751

Andrew Pinski  changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu.org

--- Comment #2 from Andrew Pinski  ---
Hmm:

  _5 = a_2(D) + 8;
  _6 = [(const struct array *)a_2(D)]._M_elems;
  _8 = _5 - _6;

I think there is another bug for this similar thing.