From e120601c0b2cbc5722950fb1ce7d0901842f5dff Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 26 Oct 2016 10:42:48 -0700 Subject: Conditionalize boolean operations based on cost (#805) When we have expensive | expensive, and both are boolean, then we can execute one of them conditionally if it doesn't have side effects. --- src/ast_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ast_utils.h') diff --git a/src/ast_utils.h b/src/ast_utils.h index 861a09aaf..9dfacb972 100644 --- a/src/ast_utils.h +++ b/src/ast_utils.h @@ -209,7 +209,8 @@ struct EffectAnalyzer : public PostWalker> { Index size = 0; -- cgit v1.2.3