[PATCH V3] Use preferred mode for doloop IV [PR61837]

2021-07-15 Thread Jiufu Guo via Gcc-patches
Refine code for V2 according to review comments: * Use if check instead assert, and refine assert * Use better RE check for test case, e.g. (?n)/(?p) * Use better wording for target.def Currently, doloop.xx variable is using the type as niter which may be shorter than word size. For some targets,

Re: [PATCH V3] Use preferred mode for doloop IV [PR61837]

2021-07-23 Thread Jeff Law via Gcc-patches
On 7/15/2021 4:08 AM, Jiufu Guo via Gcc-patches wrote: Refine code for V2 according to review comments: * Use if check instead assert, and refine assert * Use better RE check for test case, e.g. (?n)/(?p) * Use better wording for target.def Currently, doloop.xx variable is using the type as n

Re: [PATCH V3] Use preferred mode for doloop IV [PR61837]

2021-07-26 Thread Jiufu Guo via Gcc-patches
Jeff Law writes: On 7/15/2021 4:08 AM, Jiufu Guo via Gcc-patches wrote: Refine code for V2 according to review comments: * Use if check instead assert, and refine assert * Use better RE check for test case, e.g. (?n)/(?p) * Use better wording for target.def Currently, doloop.xx variable is us

Re: [PATCH V3] Use preferred mode for doloop IV [PR61837]

2021-07-26 Thread Richard Biener
On Fri, 23 Jul 2021, Jeff Law wrote: > > > On 7/15/2021 4:08 AM, Jiufu Guo via Gcc-patches wrote: > > Refine code for V2 according to review comments: > > * Use if check instead assert, and refine assert > > * Use better RE check for test case, e.g. (?n)/(?p) > > * Use better wording for target.

Re: [PATCH V3] Use preferred mode for doloop IV [PR61837]

2021-07-27 Thread Jeff Law via Gcc-patches
On 7/27/2021 12:27 AM, Richard Biener wrote: On Fri, 23 Jul 2021, Jeff Law wrote: On 7/15/2021 4:08 AM, Jiufu Guo via Gcc-patches wrote: Refine code for V2 according to review comments: * Use if check instead assert, and refine assert * Use better RE check for test case, e.g. (?n)/(?p) * U

Re: [PATCH V3] Use preferred mode for doloop IV [PR61837]

2021-07-28 Thread guojiufu via Gcc-patches
On 2021-07-27 23:40, Jeff Law wrote: On 7/27/2021 12:27 AM, Richard Biener wrote: On Fri, 23 Jul 2021, Jeff Law wrote: On 7/15/2021 4:08 AM, Jiufu Guo via Gcc-patches wrote: Refine code for V2 according to review comments: * Use if check instead assert, and refine assert * Use better RE chec