mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +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
1 changed files with 4 additions and 0 deletions
|
@ -792,7 +792,11 @@ namespace sat {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_config.m_propagate_prefetch) {
|
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);
|
_mm_prefetch((const char*)(&*(m_watches[l.index()].c_ptr())), _MM_HINT_T1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SASSERT(!l.sign() || m_phase[v] == NEG_PHASE);
|
SASSERT(!l.sign() || m_phase[v] == NEG_PHASE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue