Re: [PATCH v2 1/3] gimple-fold: Transform stp*cpy_chk to str*cpy directly

2021-11-15 Thread Jeff Law via Gcc-patches
On 11/15/2021 10:33 AM, Siddhesh Poyarekar wrote: Avoid going through another folding cycle and use the ignore flag to directly transform BUILT_IN_STPCPY_CHK to BUILT_IN_STRCPY when set, likewise for BUILT_IN_STPNCPY_CHK to BUILT_IN_STPNCPY. Dump the transformation in dump_file so that we can

[PATCH v2 1/3] gimple-fold: Transform stp*cpy_chk to str*cpy directly

2021-11-15 Thread Siddhesh Poyarekar
Avoid going through another folding cycle and use the ignore flag to directly transform BUILT_IN_STPCPY_CHK to BUILT_IN_STRCPY when set, likewise for BUILT_IN_STPNCPY_CHK to BUILT_IN_STPNCPY. Dump the transformation in dump_file so that we can verify in tests that the direct transformation actuall