Re: [PATCH 2/5] gimple-match: Add a gimple_extract_op function

2021-11-19 Thread Richard Biener via Gcc-patches
On Thu, Nov 18, 2021 at 8:01 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Tue, Nov 16, 2021 at 4:51 PM Richard Sandiford > > wrote: > >> > >> Richard Biener writes: > >> > On Wed, Nov 10, 2021 at 1:46 PM Richard Sandiford via Gcc-patches > >> > wrote: > >> >> > >> >> code_help

Re: [PATCH 2/5] gimple-match: Add a gimple_extract_op function

2021-11-18 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Tue, Nov 16, 2021 at 4:51 PM Richard Sandiford > wrote: >> >> Richard Biener writes: >> > On Wed, Nov 10, 2021 at 1:46 PM Richard Sandiford via Gcc-patches >> > wrote: >> >> >> >> code_helper and gimple_match_op seem like generally useful ways >> >> of summing up a g

Re: [PATCH 2/5] gimple-match: Add a gimple_extract_op function

2021-11-18 Thread Richard Biener via Gcc-patches
On Tue, Nov 16, 2021 at 4:51 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Wed, Nov 10, 2021 at 1:46 PM Richard Sandiford via Gcc-patches > > wrote: > >> > >> code_helper and gimple_match_op seem like generally useful ways > >> of summing up a gimple_assign or gimple_call (or gim

Re: [PATCH 2/5] gimple-match: Add a gimple_extract_op function

2021-11-16 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Wed, Nov 10, 2021 at 1:46 PM Richard Sandiford via Gcc-patches > wrote: >> >> code_helper and gimple_match_op seem like generally useful ways >> of summing up a gimple_assign or gimple_call (or gimple_cond). >> This patch adds a gimple_extract_op function that can be u

Re: [PATCH 2/5] gimple-match: Add a gimple_extract_op function

2021-11-11 Thread Richard Biener via Gcc-patches
On Wed, Nov 10, 2021 at 1:46 PM Richard Sandiford via Gcc-patches wrote: > > code_helper and gimple_match_op seem like generally useful ways > of summing up a gimple_assign or gimple_call (or gimple_cond). > This patch adds a gimple_extract_op function that can be used > for that. > > Tested on aa

[PATCH 2/5] gimple-match: Add a gimple_extract_op function

2021-11-10 Thread Richard Sandiford via Gcc-patches
code_helper and gimple_match_op seem like generally useful ways of summing up a gimple_assign or gimple_call (or gimple_cond). This patch adds a gimple_extract_op function that can be used for that. Tested on aarch64-linux-gnu and x86_64-linux-gnu. OK to install? Richard gcc/ * gimple-