You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in some cases it is not profitable to generate overflow intrinsics in CodeGenPrepare::combineToUAddWithOverflow and CodeGenPrepare::combineToUSubWithOverflow (note that for the latter function, generation of overflow intrinsics is disabled atm since TLI->shouldFormOverflowOp return false for SUB).
For the following example:
Currently, in some cases it is not profitable to generate overflow intrinsics in
CodeGenPrepare::combineToUAddWithOverflow
andCodeGenPrepare::combineToUSubWithOverflow
(note that for the latter function, generation of overflow intrinsics is disabled atm sinceTLI->shouldFormOverflowOp
return false for SUB).For the following example:
If overflow intrinsic is generated from the
a + 1 == 0
, we are generating following assembly instructions:In case overflow intrinsics is not generated, we are generating:
Reason for this could be #590 or that we don't have inverse condition code for overflow flags, but that is something to investigate.
The text was updated successfully, but these errors were encountered: