Commit Graph

28 Commits (8af4ac8a4cc8861854ebc5ca8531cc385ff2b5c7)

Author SHA1 Message Date
Jonathan G Rennison 0e5a09974a VarAction2: Fix detection of callback handlers which don't inspect var C 2 years ago
Jonathan G Rennison 5a419e4bdd VarAction2: Detect callback switches which include other adjusts 2 years ago
Jonathan G Rennison bcb917d8c2 VarAction2: Avoid CB quick exit dropping CBID_RANDOM_TRIGGER callbacks 2 years ago
Jonathan G Rennison 51b39b68b7 VarAction2: Fix technical undefined behaviour advancing iterator
Fixes error when using debug mode containers
2 years ago
Jonathan G Rennison f41624d7b2 VarAction2: Fix parent/child type of sprite register analysis 2 years ago
Jonathan G Rennison 419c356f30 VarAction2: Remove mul and div operations with constant 1 2 years ago
Jonathan G Rennison 311b4ebe9d VarAction2: Avoid marking a duplicate store as a clone of itself 2 years ago
Jonathan G Rennison 9e95b3d807 VarAction2: Limit iteration count when substituting variable loads 2 years ago
Jonathan G Rennison c2ede2af54 VarAction2: Allow inlining trivial procedures 2 years ago
Jonathan G Rennison 77f25a48a9 Only show/use appropriate parent or child registers in tile layout group
Do not use both
2 years ago
Jonathan G Rennison 6c80944c38 VarAction2: Fix variable propagation when a group had only pending bits 2 years ago
Jonathan G Rennison f381e45d5b VarAction2: Fix DSE for non-leaf procedure groups 2 years ago
Jonathan G Rennison 2a41854f6b VarAction2: Infer ternary add result is bool if both branches are bool 2 years ago
Jonathan G Rennison 8c94ba0dc8 VarAction2: Infer that multiplying two bools results in bool 2 years ago
Jonathan G Rennison 602ac717aa Initial support for DSE and jumping over procedures with child groups 2 years ago
Jonathan G Rennison 916441d943 VarAction2: Avoid turning skip on zero/LSB set sequences into jumps 2 years ago
Jonathan G Rennison 4fd8634ff9 VarAction2: Remove trivially redundant special stores 2 years ago
Jonathan G Rennison d9aa2d6138 VarAction2: Extend group cast to bool range elision
Handle opposite arrangement of range and default group
2 years ago
Jonathan G Rennison df6b9d355f VarAction2: Simplify store, load with bool/invert, ternary sequence in DSE 2 years ago
Jonathan G Rennison 14de8c7f34 VarAction2: Add quick exit case to last-level callback groups if possible 2 years ago
Jonathan G Rennison 35063b2176 VarAction2: Ensure group pruning can't break var 1C via random groups 2 years ago
Jonathan G Rennison 3676b0912d VarAction2: Fix inference handling when pruning ops prior to RST 2 years ago
Jonathan G Rennison c60e3fed99 VarAction2: Do not re-assign error group
When pruning ranges of group with constant result
2 years ago
Jonathan G Rennison e335c86e77 VarAction2: Elide group ranges as cast to bool when result is already bool 2 years ago
Jonathan G Rennison b04d1295cd VarAction2: Infer that unsigned mod 2 results in 0 or 1 2 years ago
Jonathan G Rennison 9c18835bd0 Move ProcessDeterministicSpriteGroupRanges into newgrf.cpp 2 years ago
Jonathan G Rennison c58b94c376 VarAction2: DSE: Allow setting skip on zero flag on skippable procedures 2 years ago
Jonathan G Rennison 4601a1bfc6 Move NewGRF optimiser functions into a separate file
Create a new header for shared definitions with newgrf.cpp
2 years ago