Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore dead store.
Browse files Browse the repository at this point in the history
If a compiler is bad at control flow optimization, this dead store
may be helpful.
hpkfft committed Jan 10, 2025
1 parent 44a3dca commit b26f83b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common.cpp
Original file line number Diff line number Diff line change
@@ -907,6 +907,8 @@ bool load_f64(PyObject *o, uint8_t flags, double *out) noexcept {
*out = PyFloat_AS_DOUBLE(o);
return true;
}

is_float = false;
#endif

if (is_float || (flags & (uint8_t) cast_flags::convert)) {
@@ -938,6 +940,8 @@ bool load_f32(PyObject *o, uint8_t flags, float *out) noexcept {
return false;
}
}

is_float = false;
#endif

if (is_float || convert) {

0 comments on commit b26f83b

Please sign in to comment.