If we have both an nsw and nuw flag, we would see the nsw flag
first and only handle signed comparisons.
This patch ignores the nsw flag if the comparison isn't signed.
Differential D143766
[InstCombine] Fix InstCombinerImpl::foldICmpMulConstant for nsw and nuw mul with unsigned compare. craig.topper on Feb 10 2023, 10:19 AM. Authored by
Details If we have both an nsw and nuw flag, we would see the nsw flag This patch ignores the nsw flag if the comparison isn't signed.
Diff Detail
Event Timeline
Comment Actions -Rebase on new pre-commit with tests.
This comment was removed by craig.topper.
Comment Actions Ping. This seems like a pretty straightforward bug fix. Is there anything I need to do? |
is this needed? Seems redundant given the nsw flag.