ARM/ARM64: Improve frame entry/exit codegen. am: 1a225a76ee
am: f9b0dc4f13

Change-Id: I9dc3bb2919b2615643fa5083151721ecff81eb5a