public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106375] New: [13 regreesion] Lowering complex type mov regressed loop distribution for memset/memcpy/memmov.
@ 2022-07-21  3:21 crazylht at gmail dot com
  2022-07-21  7:51 ` [Bug tree-optimization/106375] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: crazylht at gmail dot com @ 2022-07-21  3:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106375
           Summary: [13 regreesion] Lowering complex type mov regressed
                    loop distribution for memset/memcpy/memmov.
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: crazylht at gmail dot com
  Target Milestone: ---

void
foo (_Complex double* p, _Complex double* __restrict q)
{
  for (int i = 0; i != 1000; i++)
    p[i] = q[i];
}

before lowering complex type move


  <bb 2> [local count: 10737416]:
  __builtin_memcpy (p_10(D), q_9(D), 16000);
  return;


After r13-1762-gf9d4c3b45c5ed5f45c8089c990dbd4e181929c3d, it's 

18  <bb 3> [local count: 1063004409]:
19  # i_15 = PHI <i_12(5), 0(2)>
20  # ivtmp_13 = PHI <ivtmp_5(5), 1000(2)>
21  _1 = (long unsigned int) i_15;
22  _2 = _1 * 16;
23  _3 = q_9(D) + _2;
24  _4 = p_10(D) + _2;
25  _7 = REALPART_EXPR <*_3>;
26  _6 = IMAGPART_EXPR <*_3>;
27  REALPART_EXPR <*_4> = _7;
28  IMAGPART_EXPR <*_4> = _6;
29  i_12 = i_15 + 1;
30  ivtmp_5 = ivtmp_13 - 1;
31  if (ivtmp_5 != 0)
32    goto <bb 5>; [99.00%]
33  else

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-21  9:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-21  3:21 [Bug tree-optimization/106375] New: [13 regreesion] Lowering complex type mov regressed loop distribution for memset/memcpy/memmov crazylht at gmail dot com
2022-07-21  7:51 ` [Bug tree-optimization/106375] " rguenth at gcc dot gnu.org
2022-07-22  2:08 ` crazylht at gmail dot com
2022-07-22  2:32 ` crazylht at gmail dot com
2022-07-27  7:11 ` rguenth at gcc dot gnu.org
2023-04-26  6:56 ` rguenth at gcc dot gnu.org
2023-07-27  9:23 ` rguenth at gcc dot gnu.org
2024-05-21  9:11 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).