Optimize flags in arm/arm

Change-Id: I24391eafb3bae3433fcc4a4230fbbf846b13d7fb