Skip to content

Commit

Permalink
ast/simplify: Remove unused in_param code
Browse files Browse the repository at this point in the history
  • Loading branch information
povik authored and zachjs committed Oct 6, 2023
1 parent fc815fd commit 8367f06
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontends/ast/simplify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1749,13 +1749,8 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin
bool const_fold_here = const_fold;
int width_hint_here = width_hint;
bool sign_hint_here = sign_hint;
bool in_param_here = in_param;
if (i == 0 && (type == AST_REPLICATE || type == AST_WIRE))
const_fold_here = true;
if (i == 0 && (type == AST_GENIF || type == AST_GENCASE))
in_param_here = true;
if (i == 1 && (type == AST_FOR || type == AST_GENFOR))
in_param_here = true;
if (type == AST_PARAMETER || type == AST_LOCALPARAM)
const_fold_here = true;
if (type == AST_BLOCK) {
Expand Down

0 comments on commit 8367f06

Please sign in to comment.