We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1898952 commit 121e43cCopy full SHA for 121e43c
tests/benchdnn/reorder/reorder_aux.cpp
@@ -103,7 +103,8 @@ void prb_t::get_compensation_parameters(
103
dims_t &comp_dims, int &mask, flag_bit_t flag) const {
104
if (is_reorder_with_compensation(flag)) {
105
for (const auto &i_oflag : oflag) {
106
- if (i_oflag.first != flag) continue;
+ const bool has_flag_bit = (i_oflag.first & flag);
107
+ if (!has_flag_bit) continue;
108
109
mask = i_oflag.second;
110
for (int d = 0; d < ndims; ++d)
0 commit comments