Hi, Thanks for the review and suggestions. > I think the patch isn't quite complete yet. You will also need changes in > generic code. Currently sched_macro_fuse_insns() does: Modified the sched_macro_fuse_insns() as required. > Basically the idea is to push the check for CC usage into target macros Done. Pushed the check into target macros. The modifications were generic and and quite different from ALU+BRANCH fusion; a separate patch is posted with the above 2 modifications at:- https://gcc.gnu.org/ml/gcc-patches/2017-03/msg01368.html > Also in aarch64.c's macro fusion you need check that the branch >> instruction uses the same register Added to check that same registers are used in ALU and Branch instruction. Bootstrapped and Regression tested on AArch64. Please review the patch and let us know if its okay? Thanks, Naveen