elliottt opened PR #4877 from trevor/fix-4875
to main
:
The implementation of
IntCC::reverse
considered the reverse of
NotOverflow
to beNotOverflow
, but this isn't correct as the comparison does
not commute. The solution here was to change thereverse
function of the
CondCode
trait to return anOption
, and then use the function as a fallible
extractor in the isle rule that floats constants right in comparisons.Fixes #4875
<!--Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
elliottt has marked PR #4877 as ready for review.
elliottt edited PR #4877 from trevor/fix-4875
to main
:
The implementation of
IntCC::reverse
considered the reverse ofNotOverflow
to beNotOverflow
, but this isn't correct as the comparison does not commute. The solution here was to change thereverse
function of theCondCode
trait to return anOption
, and then use the function as a fallible extractor in the isle rule that floats constants right in comparisons.Fixes #4875
<!--Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
jameysharp submitted PR review.
elliottt closed without merge PR #4877.
Last updated: Nov 22 2024 at 17:03 UTC