MLBEDSW-11038: Rewrite TOSA Rescale inputs before fusing
- The mul and shift inputs to a TOSA Rescale are rewritten to the output connection of the operator in Graph IR
- This should be performed for every Rescale in the graph before using the quantisation information on the connection
- There was an issue whereby rescale fusing of binary elementwise operators would use the quantisation information on the connection of the other input before it had been rewritten. This incorrectly returned the default unit scale which then allowed partial refusing of rescales to occur on the elementwise op which was detected later on in the compiler as unsupported
- The solution is to ensure that the rewritten inputs have been performed by placing them as their own pass
Change-Id: I45a3206dc29dd03973a5fe3fb5ff86d914988092 Signed-off-by: Tim Hall tim.hall@arm.com