mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 00:11:06 +00:00
A note about how early-out in if-expressions can be translated more efficiently
This commit is contained in:
parent
bd1bc0dc59
commit
21c2fcb929
1 changed files with 9 additions and 0 deletions
9
ast.h
9
ast.h
|
@ -552,6 +552,15 @@ struct ast_function_s
|
||||||
ir_block *breakblock;
|
ir_block *breakblock;
|
||||||
ir_block *continueblock;
|
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;
|
size_t labelcount;
|
||||||
/* in order for thread safety - for the optional
|
/* in order for thread safety - for the optional
|
||||||
* channel abesed multithreading... keeping a buffer
|
* channel abesed multithreading... keeping a buffer
|
||||||
|
|
Loading…
Reference in a new issue