Add option to disable FPOptimizer (#4444)