more fma-related detection and optimization