Displaying 2 results from an estimated 2 matches for "maxscalar".
2020 Mar 24
3
[GlobalISel] Narrowing uneven/non-pow-2 types
...the
narrowing code relies on G_UNMERGE_VALUES and therefore requires the
source type to be a multiple of the narrow type. Often times these
instructions can be widened without any problem to a fitting type.
This has us writing legalization rules like `.widenScalarToNextPow2(0,
/*MinSize*/ 32).maxScalar(0, s32)` instead of the much simpler
`.clampScalar(0, s32 ,s32)`.
Although this works and has the desired effect, we feel like that such a
rule requires internal knowledge of the legalizer, which can change at
any point in the future. Ideally we would only want to say `clampScalar`
and let the...
2020 Mar 25
2
[GlobalISel] Narrowing uneven/non-pow-2 types
...g code relies on G_UNMERGE_VALUES and therefore requires the source type to be a multiple of the narrow type. Often times these instructions can be widened without any problem to a fitting type.
>>
>> This has us writing legalization rules like `.widenScalarToNextPow2(0, /*MinSize*/ 32).maxScalar(0, s32)` instead of the much simpler `.clampScalar(0, s32 ,s32)`.
>>
>> Although this works and has the desired effect, we feel like that such a rule requires internal knowledge of the legalizer, which can change at any point in the future. Ideally we would only want to say `clampScalar...