Skip to content

Commit

Permalink
dont select forced nodes in lower_integers_together
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Jan 19, 2025
1 parent c3afc11 commit d976c75
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,8 @@ def lower_integers_together(self, chooser):
node2 = self.nodes[
chooser.choose(
range(node1.index + 1, min(len(self.nodes), node1.index + 3 + 1)),
lambda i: self.nodes[i].ir_type == "integer",
lambda i: self.nodes[i].ir_type == "integer"
and not self.nodes[i].was_forced,
)
]

Expand Down

0 comments on commit d976c75

Please sign in to comment.