This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 177
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add a special case for dshl handling in the ZeroWidths pass. If one expression is shifted by a second, zero-width expression, just return the first expression. This prevents a bug where the width will incorrectly expand due to zero-widths introducing a 1-bit zero expression. Signed-off-by: Schuyler Eldridge <[email protected]>
jackkoenig
approved these changes
Aug 26, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I've marked this 1.3.x
per our new policy of backporting bugfixes 2 versions by default.
seldridge
added
the
Please Merge
Accepted PRs that are ready to be merged. Useful when waiting on CI.
label
Aug 26, 2021
mergify bot
pushed a commit
that referenced
this pull request
Aug 26, 2021
* Fix dshl zero-width shift behavior Add a special case for dshl handling in the ZeroWidths pass. If one expression is shifted by a second, zero-width expression, just return the first expression. This prevents a bug where the width will incorrectly expand due to zero-widths introducing a 1-bit zero expression. Signed-off-by: Schuyler Eldridge <[email protected]> * fixup! Fix dshl zero-width shift behavior (cherry picked from commit cc80c63) # Conflicts: # src/main/scala/firrtl/passes/ZeroWidth.scala
mergify bot
pushed a commit
that referenced
this pull request
Aug 26, 2021
* Fix dshl zero-width shift behavior Add a special case for dshl handling in the ZeroWidths pass. If one expression is shifted by a second, zero-width expression, just return the first expression. This prevents a bug where the width will incorrectly expand due to zero-widths introducing a 1-bit zero expression. Signed-off-by: Schuyler Eldridge <[email protected]> * fixup! Fix dshl zero-width shift behavior (cherry picked from commit cc80c63)
mergify
bot
added
the
Backported
This PR has been backported to marked stable branch
label
Aug 26, 2021
mergify bot
added a commit
that referenced
this pull request
Aug 26, 2021
* Fix dshl zero-width shift behavior Add a special case for dshl handling in the ZeroWidths pass. If one expression is shifted by a second, zero-width expression, just return the first expression. This prevents a bug where the width will incorrectly expand due to zero-widths introducing a 1-bit zero expression. Signed-off-by: Schuyler Eldridge <[email protected]> * fixup! Fix dshl zero-width shift behavior (cherry picked from commit cc80c63) Co-authored-by: Schuyler Eldridge <[email protected]>
seldridge
added a commit
that referenced
this pull request
Aug 26, 2021
mergify bot
added a commit
that referenced
this pull request
Aug 26, 2021
* Fix dshl zero-width shift behavior (#2339) * Fix dshl zero-width shift behavior Add a special case for dshl handling in the ZeroWidths pass. If one expression is shifted by a second, zero-width expression, just return the first expression. This prevents a bug where the width will incorrectly expand due to zero-widths introducing a 1-bit zero expression. Signed-off-by: Schuyler Eldridge <[email protected]> * fixup! Fix dshl zero-width shift behavior (cherry picked from commit cc80c63) # Conflicts: # src/main/scala/firrtl/passes/ZeroWidth.scala * fixup! Fix dshl zero-width shift behavior (#2339) Co-authored-by: Schuyler Eldridge <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Backported
This PR has been backported to marked stable branch
bugfix
Please Merge
Accepted PRs that are ready to be merged. Useful when waiting on CI.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a special case for dshl handling in the ZeroWidths pass. If one
expression is shifted by a second, zero-width expression, just return
the first expression. This prevents a bug where the width will
incorrectly expand due to zero-widths introducing a 1-bit zero
expression.
Signed-off-by: Schuyler Eldridge [email protected]
Fixes llvm/circt#1643.
Contributor Checklist
Type of Improvement
API Impact
None.
Backend Code Generation Impact
Change behavior of
ZeroWidths
to treatdshl(a, 0-width)
asa
. This changes the code generation for some circuits.Desired Merge Strategy
Release Notes
Reviewer Checklist (only modified by reviewer)
Please Merge
?