> Am 03.09.2023 um 03:23 schrieb Jeff Law via Gcc <gcc@gcc.gnu.org>:
> 
> 
> 
>> On 9/2/23 18:40, Andrew Pinski via Gcc wrote:
>> Hi,
>>   I was trying to use the ranger from inside of cfgexpand but since at
>> this point we have a mix of RTL and gimple basic blocks, things fall
>> over very fast.
>> First does it make sense to use the ranger from expand or should we
>> change the gimple IR in isel instead if we have a better way of doing
>> an expansion.
>> In this case we have MIN_EXPR<a, 1> where a has a range of [0,INF] and
>> I want to expand it as (a != 0) to get better code.
> I very much want to get to a point where we can use ranges during expansion, 
> but we're probably going to be limited to global ranges since as you note, 
> we're in a mixed IL state and ranger is probably going to be confused as hell.

I think we want to move towards doing all the clever bits of RTL expansion as a 
preparation on GIMPLE which is what we have ISEL for.

Richard 

> 
> Jeff

Reply via email to