3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 21:38:44 +00:00

use __builtin_prefetch for clang/gcc

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-05-08 19:09:59 +01:00
parent ad6e128cab
commit 41072e3125

View file

@ -792,7 +792,11 @@ namespace sat {
}
if (m_config.m_propagate_prefetch) {
#if defined(__GLUC__) || defined(__clang__)
__builtin_prefetch((const char*)(&*(m_watches[l.index()].c_ptr()));
#else
_mm_prefetch((const char*)(&*(m_watches[l.index()].c_ptr())), _MM_HINT_T1);
#endif
}
SASSERT(!l.sign() || m_phase[v] == NEG_PHASE);