Skip to content

Commit e748ca6

Browse files
committed
Handle non addi case
1 parent 222ef7e commit e748ca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/enzyme_ad/jax/Passes/CanonicalizeFor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,8 @@ struct MoveDoWhileToFor : public OpRewritePattern<WhileOp> {
11101110
// Expect atleast one of the updatedIV fields to be IV
11111111
else
11121112
return failure();
1113-
}
1113+
} else
1114+
return failure();
11141115

11151116
// Check if loop iter_count is > 1 i.e lb + step < ub else return failure
11161117
APInt lbConstInt, ubConstInt, stepConstInt;

0 commit comments

Comments
 (0)