public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/103267] New: Wrong code with ipa-sra
@ 2021-11-15 22:02 hubicka at gcc dot gnu.org
  2021-11-16  7:58 ` [Bug ipa/103267] " marxin at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 20+ messages in thread
From: hubicka at gcc dot gnu.org @ 2021-11-15 22:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103267
           Summary: Wrong code with ipa-sra
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

The following testcase in C should be valid expectd to loop infinitely while
with IPA SRA we ICE.



static int
__attribute__ ((noinline,const))
infinite (int p)
{
  if (p)
    while (1);
  return p;
}
__attribute__ ((noinline))
static void
test(int p, int *a)
{
  int v = infinite (p);
  if (*a && v)
    __builtin_abort ();
}
test2(int *a)
{
  test(0,a);
}
main()
{
  test (1,0);
}

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

end of thread, other threads:[~2021-12-01 17:33 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 22:02 [Bug ipa/103267] New: Wrong code with ipa-sra hubicka at gcc dot gnu.org
2021-11-16  7:58 ` [Bug ipa/103267] " marxin at gcc dot gnu.org
2021-11-16  8:26 ` hubicka at gcc dot gnu.org
2021-11-16  8:31 ` marxin at gcc dot gnu.org
2021-11-16  8:34 ` marxin at gcc dot gnu.org
2021-11-16  8:42   ` Jan Hubicka
2021-11-16  8:43 ` hubicka at kam dot mff.cuni.cz
2021-11-16  8:47   ` Jan Hubicka
2021-11-16  8:48 ` hubicka at kam dot mff.cuni.cz
2021-11-16  8:48 ` marxin at gcc dot gnu.org
2021-11-16  8:54   ` Jan Hubicka
2021-11-16  8:48 ` marxin at gcc dot gnu.org
2021-11-16  8:50 ` marxin at gcc dot gnu.org
2021-11-16  8:54 ` hubicka at kam dot mff.cuni.cz
2021-11-30 14:31 ` jamborm at gcc dot gnu.org
2021-11-30 17:45 ` cvs-commit at gcc dot gnu.org
2021-12-01 13:24 ` cvs-commit at gcc dot gnu.org
2021-12-01 13:27 ` cvs-commit at gcc dot gnu.org
2021-12-01 17:30 ` cvs-commit at gcc dot gnu.org
2021-12-01 17:33 ` jamborm 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).