Skip to content
Snippets Groups Projects
Commit 94484125 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Remove likely/unlikely attributes

Actually these attributes are useless
parent f3a2b330
No related branches found
No related tags found
1 merge request!199Integrate checkpointing
......@@ -25,7 +25,7 @@ class ASTNodeListProcessor final : public INodeProcessor
execute(ExecutionPolicy& exec_policy)
{
ResumingManager& resuming_manager = ResumingManager::getInstance();
if (resuming_manager.isResuming()) [[unlikely]] {
if (resuming_manager.isResuming()) {
const size_t checkpoint_id = resuming_manager.checkpointId();
const ASTCheckpointsInfo& ast_checkpoint_info = ASTCheckpointsInfo::getInstance();
......
......@@ -27,7 +27,7 @@ class DoWhileProcessor final : public INodeProcessor
ExecutionPolicy exec_until_jump;
ResumingManager& resuming_manager = ResumingManager::getInstance();
do {
if (resuming_manager.isResuming()) [[unlikely]] {
if (resuming_manager.isResuming()) {
const size_t checkpoint_id = resuming_manager.checkpointId();
const ASTCheckpointsInfo& ast_checkpoint_info = ASTCheckpointsInfo::getInstance();
......
......@@ -26,7 +26,7 @@ class ForProcessor final : public INodeProcessor
ExecutionPolicy exec_until_jump;
ResumingManager& resuming_manager = ResumingManager::getInstance();
if (not resuming_manager.isResuming()) [[likely]] {
if (not resuming_manager.isResuming()) {
m_node.children[0]->execute(exec_policy);
}
while (resuming_manager.isResuming() or [&]() {
......@@ -41,7 +41,7 @@ class ForProcessor final : public INodeProcessor
},
m_node.children[1]->execute(exec_policy)));
}()) {
if (resuming_manager.isResuming()) [[unlikely]] {
if (resuming_manager.isResuming()) {
const size_t checkpoint_id = resuming_manager.checkpointId();
const ASTCheckpointsInfo& ast_checkpoint_info = ASTCheckpointsInfo::getInstance();
......
......@@ -24,7 +24,7 @@ class IfProcessor final : public INodeProcessor
execute(ExecutionPolicy& exec_policy)
{
ResumingManager& resuming_manager = ResumingManager::getInstance();
if (resuming_manager.isResuming()) [[unlikely]] {
if (resuming_manager.isResuming()) {
const size_t checkpoint_id = resuming_manager.checkpointId();
const ASTCheckpointsInfo& ast_checkpoint_info = ASTCheckpointsInfo::getInstance();
......
......@@ -37,7 +37,7 @@ class WhileProcessor final : public INodeProcessor
},
m_node.children[0]->execute(exec_policy)));
}()) {
if (resuming_manager.isResuming()) [[unlikely]] {
if (resuming_manager.isResuming()) {
const size_t checkpoint_id = resuming_manager.checkpointId();
const ASTCheckpointsInfo& ast_checkpoint_info = ASTCheckpointsInfo::getInstance();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment