This is a small followup to D54534, which extends the ssub.sat(X, C) -> sadd.sat(X, -C) canonicalization to support non-splat constants. This is done by generalizing the implementation of the isNotMinSignedValue() helper to return true for constants that are non-splat, but don't contain any signed min elements.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/Transforms/InstCombine/saturating-add-sub.ll | ||
---|---|---|
340 | Update comment: non-splat works now. |
Update comment: non-splat works now.