This commit is contained in:
Jakub Doka 2024-11-12 20:59:12 +01:00
parent 4ec88e3397
commit 63f2a0dac0
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -3591,7 +3591,7 @@ impl<'a> Codegen<'a> {
.zip(bres.vars.iter_mut())
{
if self.ci.nodes[scope_var.value()].is_lazy_phi(node) {
if loop_var.value() != scope_var.value() {
if loop_var.value() != scope_var.value() && loop_var.value() != 0 {
scope_var.set_value(
self.ci.nodes.modify_input(scope_var.value(), 2, loop_var.value()),
&mut self.ci.nodes,