Re: [PATCH] i386: Add define_insn_and_split patterns for btrl [PR96938]

2021-01-13 Thread Uros Bizjak via Gcc-patches
On Wed, Jan 13, 2021 at 8:18 AM Jakub Jelinek wrote: > > Hi! > > In the following testcase we only optimize f2 and f7 to btrl, although we > should optimize that way all of the functions. The problem is the type > demotion/narrowing (which is performed solely during the generic folding and > not

[PATCH] i386: Add define_insn_and_split patterns for btrl [PR96938]

2021-01-12 Thread Jakub Jelinek via Gcc-patches
Hi! In the following testcase we only optimize f2 and f7 to btrl, although we should optimize that way all of the functions. The problem is the type demotion/narrowing (which is performed solely during the generic folding and not later), without it we see the AND performed in SImode and match it