mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
Only when peephole optimization is on
This commit is contained in:
parent
2cf5046d38
commit
ffdd6df828
1 changed files with 1 additions and 1 deletions
2
ast.c
2
ast.c
|
@ -454,7 +454,7 @@ ast_binary* ast_binary_new(lex_ctx_t ctx, int op,
|
|||
* Try to fold away superfluous binary operations, such as:
|
||||
* A * 1, a + 0, etc.
|
||||
*/
|
||||
if ((fold = (ast_binary*)fold_superfluous(left, right, op))) {
|
||||
if (OPTS_OPTIMIZATION(OPTIM_PEEPHOLE) && (fold = (ast_binary*)fold_superfluous(left, right, op))) {
|
||||
ast_binary_delete(self);
|
||||
return fold;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue