Re: [PATCH] rs6000: Make P10_FUSION honour tuning setting

2023-01-11 Thread Kewen.Lin via Gcc-patches
  generating power10 instructions.  */ >>> +  if (!(rs6000_isa_flags_explicit & OPTION_MASK_P10_FUSION)) >>> +    { >>> +  if (processor_target_table[tune_index].processor == >>> PROCESSOR_POWER10) >> >> You can use (rs6000_tune == PROCESSOR_POWER

Re: [PATCH] rs6000: Make P10_FUSION honour tuning setting

2023-01-06 Thread Kewen.Lin via Gcc-patches
Hi Pat, on 2023/1/6 03:30, Pat Haugen wrote: > On 1/4/23 3:20 AM, Kewen.Lin via Gcc-patches wrote: >> diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc >> index 88c865b6b4b..6fa084c0807 100644 >> --- a/gcc/config/rs6000/rs6000.cc >> +++ b/gcc/config/rs6000/rs6000.cc >> @@ -437

Re: [PATCH] rs6000: Make P10_FUSION honour tuning setting

2023-01-05 Thread Pat Haugen via Gcc-patches
On 1/4/23 3:20 AM, Kewen.Lin via Gcc-patches wrote: diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc index 88c865b6b4b..6fa084c0807 100644 --- a/gcc/config/rs6000/rs6000.cc +++ b/gcc/config/rs6000/rs6000.cc @@ -4378,9 +4378,15 @@ rs6000_option_override_internal (bool global_

[PATCH] rs6000: Make P10_FUSION honour tuning setting

2023-01-04 Thread Kewen.Lin via Gcc-patches
Hi, We noticed this issue when Segher reviewed the patch for PR104024. When there is no explicit setting for option -mpower10-fusion, we enable OPTION_MASK_P10_FUSION for TARGET_POWER10. But it's not right, it should honour tuning setting instead. This patch is to fix it accordingly, it's boots