mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-31 19:42:54 +00:00
7f47a9ef0e
RCLSE ignores NZCV and doesn't optimize stores which doesn't help us with PF/AF either. So, we add a new pass for dead flag elimination (cannibalizing the old and broken dead flag elimination pass). This is a simple local optimizer that walks each block backwards, converging in linear time & constant space in a single iteration. Right now, it doesn't do a ton (other than a nice reduction in silliness in the hot Sonic block), but it provides the framework to fuse comparisons. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>