From: Wolfgang (Blub) Bumiller Date: Wed, 21 Nov 2012 18:22:28 +0000 (+0100) Subject: A note about how early-out in if-expressions can be translated more efficiently X-Git-Tag: 0.1.9~378 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=21c2fcb929ed0cb2ec2be41bc084d8c55538e477;p=xonotic%2Fgmqcc.git A note about how early-out in if-expressions can be translated more efficiently --- diff --git a/ast.h b/ast.h index 989fae7..f0e9e6b 100644 --- a/ast.h +++ b/ast.h @@ -552,6 +552,15 @@ struct ast_function_s ir_block *breakblock; ir_block *continueblock; +#if 0 + /* In order for early-out logic not to go over + * excessive jumps, we remember their target + * blocks... + */ + ir_block *iftrue; + ir_block *iffalse; +#endif + size_t labelcount; /* in order for thread safety - for the optional * channel abesed multithreading... keeping a buffer