Catch the (admittedly unusual) case where SIFoldOperands attempts to fold 2
constant operands into the same SALU operation, with neither operand able to be
encoded as an inline constant.
Change-Id: Ibc48d662c9ffd8bbacd154976b0b1c257ace0927
Differential D70896
AMDGPU: Avoid folding 2 constant operands into an SALU operation dstuttard on Dec 2 2019, 5:06 AM. Authored by
Details Catch the (admittedly unusual) case where SIFoldOperands attempts to fold 2 Change-Id: Ibc48d662c9ffd8bbacd154976b0b1c257ace0927
Diff Detail
Event TimelineComment Actions I would have preferred to have put this check into isImmOperandLegal in SIInstrInfo.cpp - but that produced lots of lit regressions. Looks like commute operations use this function even when they are swapping rather than replacing the operand (which breaks). Comment Actions I've never completely liked the way isOperandLegal is structured to always check the legality with respect to all other operands.
Comment Actions Made suggested changes
|
TRI is already a class member