[Bug c/115088] New: Autofdo doesn't create correct cfg

2024-05-14 Thread andyzhenyu.zhao at mail dot utoronto.ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115088

Bug ID: 115088
   Summary: Autofdo doesn't create correct cfg
   Product: gcc
   Version: 14.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: andyzhenyu.zhao at mail dot utoronto.ca
  Target Milestone: ---

Created attachment 58204
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58204&action=edit
afdo cfg

HI. I used the gcc 14 and autofdo-0.19. I tried to follow the steps for autofdo
tutorial on this website(https://gcc.gnu.org/wiki/AutoFDO/Tutorial). And I
attached the cfg I got. By the way, I used this command: gcc -O3
-fauto-profile=sort.gcov sort.c -o sort_autofdo -fdump-ipa-afdo-details.
here is info for gcov:
dump_gcov pmu.gcov 

sort_array total:8085 head:0
  0: 0
  1: 0
  3.1: 0
  4: 0
  4.1: 0
  7: 0
  6: bubble_sort total:8085
2: 0
3: 0
4.1: 1999
5: 4246
8: 1070
9: 770

[Bug rtl-optimization/115081] find thie PR will cause ICE: Modify cost calculation for dealingf with equivalaennces

2024-05-13 Thread andyzhenyu.zhao at mail dot utoronto.ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115081

--- Comment #4 from Zhenyu Zhao  ---
I apologize for not describing my problem clearly.
I'm now trying to import these two PR in gcc in the x86 openEuler OS to test
some application. But after introducing them I found out that these two pr's
cause ICE problems on x86 platforms. For this case, should I also fill the bug
with them?
Thanks.

[Bug rtl-optimization/115081] find thie PR will cause ICE: Modify cost calculation for dealingf with equivalaennces

2024-05-13 Thread andyzhenyu.zhao at mail dot utoronto.ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115081

--- Comment #2 from Zhenyu Zhao  ---
Created attachment 58198
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58198&action=edit
Detail info about ICE

Sorry for that, I reattach the image.

[Bug c/115081] New: find thie PR will cause ICE: Modify cost calculation for dealingf with equivalaennces

2024-05-13 Thread andyzhenyu.zhao at mail dot utoronto.ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115081

Bug ID: 115081
   Summary: find thie PR will cause ICE: Modify cost calculation
for dealingf with equivalaennces
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: andyzhenyu.zhao at mail dot utoronto.ca
  Target Milestone: ---

Here is the website for this patch:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=f55cdce3f8dd8503e080e35be59c5f5390f6d95e

And I also find a patch to sovled some problems caused by this patch.
Here is the website:
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=4d3d2cdb574488223d023b590c3a34ddd93f4dae.

detail info in the attachment.