From 791c765cda070e47d90577de2d798f046431d095 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 25 Apr 2016 20:08:24 -0700 Subject: selectify if-elses with no control flow in them --- src/ast_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ast_utils.h') diff --git a/src/ast_utils.h b/src/ast_utils.h index 36895ac51..5cda48578 100644 --- a/src/ast_utils.h +++ b/src/ast_utils.h @@ -52,7 +52,7 @@ struct EffectAnalyzer : public PostWalker 0; } bool accessesMemory() { return calls || readsMemory || writesMemory; } - bool hasSideEffects() { return calls || localsWritten.size() > 0 || writesMemory; } + bool hasSideEffects() { return calls || localsWritten.size() > 0 || writesMemory || branches; } bool hasAnything() { return branches || calls || accessesLocal() || readsMemory || writesMemory; } // checks if these effects would invalidate another set (e.g., if we write, we invalidate someone that reads, they can't be moved past us) -- cgit v1.2.3