Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Hotfix for Vector Reg Init LegalizeConnects Bug #2380

Merged
merged 2 commits into from
Oct 5, 2021

Conversation

seldridge
Copy link
Member

Add a private pass, LegalizeConnectsOnly, that behaves like
LegalizeConnects, but only pads connects instead of connects and
register inits. Padding is necessary for ReplSeqMem, but ReplSeqMem
runs before LowerTypes and vector registers can still exist at this
point. Connects, conversely, are all blown out by ExpandConnects and
can be safely, blindly treated as ground type.

Fixes #2379.

Signed-off-by: Schuyler Eldridge [email protected]

Add a private pass, LegalizeConnectsOnly, that behaves like
LegalizeConnects, but only pads connects instead of connects and
register inits.  Padding is necessary for ReplSeqMem, but ReplSeqMem
runs before LowerTypes and vector registers can still exist at this
point.  Connects, conversely, are all blown out by ExpandConnects and
can be safely, blindly treated as ground type.

Fixes #2379.

Signed-off-by: Schuyler Eldridge <[email protected]>
Signed-off-by: Schuyler Eldridge <[email protected]>
@jackkoenig jackkoenig added this to the 1.5.0 milestone Oct 5, 2021
Copy link
Contributor

@mwachs5 mwachs5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am approving in that this fixes the issue for me, but not sure if this is the "right" thing to do from first principles

Copy link
Contributor

@jackkoenig jackkoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice fix

@jackkoenig jackkoenig merged commit d705335 into master Oct 5, 2021
@jackkoenig jackkoenig deleted the dev/seldridge/issue-2379 branch October 5, 2021 17:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReplSeqMem Crashes on Register with Smaller Vec Init Trying to Pad Smaller Type
3 participants