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:
parent
ad6e128cab
commit
41072e3125
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue