Closed al13n321 closed 1 year ago
Hey, @al13n321! You are right, thank you for patch! I’ll mege into development branch and release soon.
:tada: This PR is included in version 2.1.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
I accidentally noticed that all the
if (!std::is_same<prefetch_at, dummy_prefetch_t>::value)
checks aren't actually working. Theprefetch_at
template argument gets inferred asdummy_prefetch_t &
, so theis_same
returns false, and theprefetch()
call happens even for dummy prefetch. (Then presumably gets inlined and optimized out.)This PR replaces the check with
if (!std::is_same<typename std::decay<prefetch_at>::type, dummy_prefetch_t>::value)
. Idk if it's the most concise or "correct" way to do it, but it works.