Skip to content

Commit 3b9536c

Browse files
Renamed function fill_opaque_mask
1 parent 38dae2c commit 3b9536c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/python/freeze.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ bool compatible_auto_opaque(FlatVariables &cur, FlatVariables &prev){
269269
return true;
270270
}
271271

272-
bool FlatVariables::compare_opaque(FlatVariables &prev,
272+
bool FlatVariables::fill_opaque_mask(FlatVariables &prev,
273273
std::vector<bool> &opaque_mask) {
274274
// If we notice that only a literal has changed, we can set the
275275
// corresponding bit in the mask, indicating that this literal should be
@@ -1684,7 +1684,7 @@ nb::object FrozenFunction::operator()(nb::args args, nb::kwargs kwargs) {
16841684

16851685
in_variables->record_jit_variables();
16861686
if (prev_key && auto_opaque)
1687-
in_variables->compare_opaque(*prev_key, opaque_mask);
1687+
in_variables->fill_opaque_mask(*prev_key, opaque_mask);
16881688
}
16891689

16901690
in_heuristics = in_heuristics.max(in_variables->heuristic());

src/python/freeze.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct FlatVariables {
246246
* iteration. This should only be called if \c compatible_auto_opaque
247247
* returns true for the corresponding \c FlatVariables pair.
248248
*/
249-
bool compare_opaque(FlatVariables &prev, std::vector<bool> &opaque_mask);
249+
bool fill_opaque_mask(FlatVariables &prev, std::vector<bool> &opaque_mask);
250250

251251
/**
252252
* Schedule variables that have been collected when traversing the PyTree.

0 commit comments

Comments
 (0)