public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ibuclaw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/115138] [15 Regression] Bootstrap compare-debug fail after r15-580-gf3e5f4c58591f5
Date: Wed, 22 May 2024 18:58:28 +0000	[thread overview]
Message-ID: <bug-115138-4-VAb73nHJu1@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-115138-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #21 from Iain Buclaw <ibuclaw at gcc dot gnu.org> ---
Now doing a fair comparison:

Command:

g++-11 -std=c++11  \
   -fno-PIE -c -O3 -g -fno-checking -DIN_GCC -fno-exceptions \
  -fno-rtti -fasynchronous-unwind-tables \
  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format \
  -Wmissing-format-attribute -Wconditionally-supported \
  -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros \
  -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -fno-PIE \
  -I../stage1-gcc -I../../gcc -I../../gcc/. -I../../gcc/../include  \
  -I../../gcc/../libcpp/include -I../../gcc/../libcody  \
  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid \
  -I../libdecnumber -I../../gcc/../libbacktrace   \
  -o gimplify.o ../../gcc/gimplify.cc

Optimized-tree dump around line 6529.
```
  <bb 81> [local count: 302659225]:
  # _272 = PHI <is_gimple_reg_rhs_or_call(79), is_gimple_mem_rhs_or_call(80)>
  # DEBUG lhs => NULL
  # DEBUG final_pred => _272
  # DEBUG BEGIN_STMT
  if (_272 != _547)
    goto <bb 83>; [53.47%]
  else
    goto <bb 82>; [46.53%]

  <bb 82> [local count: 301785332]:
  # DEBUG BEGIN_STMT
  _66 = MEM[(union tree_node * *)_1 + 32B];
  _67 = _66->base.code;
  if (_67 == 163)
    goto <bb 84>; [34.00%]
  else
    goto <bb 93>; [66.00%]

  <bb 83> [local count: 161831887]:
  # DEBUG BEGIN_STMT
  ret_268 = gimplify_expr (_796, pre_p_252(D), post_p_253(D), _272, 1);
  # DEBUG ret => ret_268
  # DEBUG BEGIN_STMT
  if (ret_268 == -2)
    goto <bb 14>; [0.54%]
  else
    goto <bb 82>; [99.46%]
```


Command #2:

../stage1-gcc/xg++ -B../stage1-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ \
  -nostdinc++ -B../stage1-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs \
  -B../stage1-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs  \
  -I../stage1-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu  \
  -I../stage1-x86_64-pc-linux-gnu/libstdc++-v3/include  \
  -I../../libstdc++-v3/libsupc++ \
  -L../stage1-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs \
  -L../stage1-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs  \
  -fno-PIE -c -O3 -g -fno-checking -DIN_GCC  -fno-exceptions \
  -fno-rtti -fasynchronous-unwind-tables \
  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual \
  -Wmissing-format-attribute -Wconditionally-supported \
  -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros \
  -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -fno-PIE \
  -I../stage2-gcc -I../../gcc -I../../gcc/. -I../../gcc/../include  \
  -I../../gcc/../libcpp/include -I../../gcc/../libcody  \
  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid \
  -I../libdecnumber -I../../gcc/../libbacktrace   \
  -o gimplify.o ../../gcc/gimplify.cc


Output.
```
  <bb 83> [local count: 302659226]:
  # _274 = PHI <is_gimple_reg_rhs_or_call(82), is_gimple_mem_rhs_or_call(81)>
  # DEBUG lhs => NULL
  # DEBUG final_pred => _274
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  ret_270 = gimplify_expr (_723, pre_p_253(D), post_p_254(D), _274, 1);
  # DEBUG ret => ret_270
  # DEBUG BEGIN_STMT
  if (ret_270 == -2)
    goto <bb 16>; [0.54%]
  else
    goto <bb 84>; [99.46%]

  <bb 84> [local count: 301785333]:
  # DEBUG BEGIN_STMT
  _66 = MEM[(union tree_node * *)_1 + 32B];
  _67 = _66->base.code;
  if (_67 == 163)
    goto <bb 85>; [34.00%]
  else
    goto <bb 90>; [66.00%]
```

Is this helpful enough to narrow it down?

  parent reply	other threads:[~2024-05-22 18:58 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-17 14:20 [Bug tree-optimization/115138] New: " iains at gcc dot gnu.org
2024-05-17 14:22 ` [Bug tree-optimization/115138] " iains at gcc dot gnu.org
2024-05-17 14:23 ` rguenther at suse dot de
2024-05-17 15:08 ` iains at gcc dot gnu.org
2024-05-17 17:35 ` iains at gcc dot gnu.org
2024-05-18  8:09 ` schwab@linux-m68k.org
2024-05-18 10:46 ` iains at gcc dot gnu.org
2024-05-18 11:30 ` iains at gcc dot gnu.org
2024-05-21 10:01 ` rguenth at gcc dot gnu.org
2024-05-21 11:02 ` iains at gcc dot gnu.org
2024-05-21 12:16 ` rguenth at gcc dot gnu.org
2024-05-22  8:07 ` ibuclaw at gcc dot gnu.org
2024-05-22  8:27 ` rguenth at gcc dot gnu.org
2024-05-22  8:29 ` rguenth at gcc dot gnu.org
2024-05-22  9:02 ` iains at gcc dot gnu.org
2024-05-22 11:59 ` rguenth at gcc dot gnu.org
2024-05-22 15:43 ` ibuclaw at gcc dot gnu.org
2024-05-22 15:51 ` iains at gcc dot gnu.org
2024-05-22 17:12 ` ibuclaw at gcc dot gnu.org
2024-05-22 17:44 ` ibuclaw at gcc dot gnu.org
2024-05-22 18:34 ` ibuclaw at gcc dot gnu.org
2024-05-22 18:58 ` ibuclaw at gcc dot gnu.org [this message]
2024-05-23  9:24 ` rguenth at gcc dot gnu.org
2024-05-23 12:39 ` cvs-commit at gcc dot gnu.org
2024-05-23 12:39 ` rguenth at gcc dot gnu.org
2024-05-26  5:35 lorena feirer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-115138-4-VAb73nHJu1@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).