Re: [PATCH] Add targetm.have_ccmp hook [PR115370]

2024-06-13 Thread Hongyu Wang
Thanks, this it the patch I'm going to check-in. Richard Sandiford 于2024年6月13日周四 17:04写道: > > Hongyu Wang writes: > > Hi, > > > > In cfgexpand, there is an optimization for branch which tests > > targetm.gen_ccmp_first == NULL. However for target like x86-64, the > > hook was implemented but it

Re: [PATCH] Add targetm.have_ccmp hook [PR115370]

2024-06-13 Thread Richard Sandiford
Hongyu Wang writes: > Hi, > > In cfgexpand, there is an optimization for branch which tests > targetm.gen_ccmp_first == NULL. However for target like x86-64, the > hook was implemented but it does not indicate that ccmp was enabled. > Add a new target hook TARGET_HAVE_CCMP and replace the middle-e

[PATCH] Add targetm.have_ccmp hook [PR115370]

2024-06-12 Thread Hongyu Wang
Hi, In cfgexpand, there is an optimization for branch which tests targetm.gen_ccmp_first == NULL. However for target like x86-64, the hook was implemented but it does not indicate that ccmp was enabled. Add a new target hook TARGET_HAVE_CCMP and replace the middle-end check for the existance of ge