Description
Mode combines linker + optimizer. However these are not completely orthogonal, as we often need to to include required rewrites and exclude incompatible rewrites for a given linker.
The code in mode.py is pretty clumsy right now, as each backend as slightly different set of rewrites it needs to tweak. I suggest the linker should provide information about minimum required rewrites and those that are in the default database but must be excluded