VarAction2: Re-order commutative skip on zero operation sequences

Such that less expensive variables can be tested first
This commit is contained in:
Jonathan G Rennison
2022-06-08 20:29:46 +01:00
parent 0409bd88e8
commit 376b434d53
2 changed files with 54 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ enum NewGRFOptimiserFlags {
NGOF_NO_OPT_VARACT2_GROUP_PRUNE = 2,
NGOF_NO_OPT_VARACT2_EXPENSIVE_VARS = 3,
NGOF_NO_OPT_VARACT2_SIMPLIFY_STORES = 4,
NGOF_NO_OPT_VARACT2_ADJUST_ORDERING = 5,
};
inline bool HasGrfOptimiserFlag(NewGRFOptimiserFlags flag)