Skip to content

Conversation

@whitequark
Copy link
Member

Before this commit, in a process like:

   process $proc$bug.v:8$3
     assign $foo \bar
     switch \sel
       case 1'1
         assign $foo 1'1
         assign $foo 1'1
       case
         assign $foo 1'0
     end
   end

both of the assign $foo 1'1 would incorrectly be removed.

Fixes #1243.

Before this commit, in a process like:
   process $proc$bug.v:8$3
     assign $foo \bar
     switch \sel
       case 1'1
         assign $foo 1'1
         assign $foo 1'1
       case
         assign $foo 1'0
     end
   end
both of the "assign $foo 1'1" would incorrectly be removed.

Fixes YosysHQ#1243.
@whitequark whitequark merged commit 39f4c10 into YosysHQ:master Aug 9, 2019
@whitequark whitequark deleted the proc_prune-fix-1243 branch August 9, 2019 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected behaviour of for loop and if statement

1 participant