MLBEDSW-11217: Refactor Rescale fusability checks into functions
- Abstract rescale-fusing constraints into separate functions.
These abstractions simplify the main pass and
remove redundancy when attempting to binary IFM-fuse.
CanBeFused:
- Generic checks to determine whether a rescale operation can be fused onto any operation. CanFuseRescaleOnProducer
- Check if a rescale can be fused onto a specific producer. CanFuseRescaleOnConsumer:
- Check if a rescale can be fused onto a specific consumer. CanFuseMultipleRescalesOnConsumer
- Checks for binary IFM-fusing when unary IFM-fusing fails.
Signed-off-by: Alexander Bengtsson Alexander.Bengtsson@arm.com Change-Id: I0064753fbe258a7e9d00b4c337960b2aae10369f