[PATCH] D18572: [AArch64] Relax branches by fusing compare with conditional branch when we can infer that source register is zero/non-zero.

Balaram Makam via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 09:26:12 PDT 2016


bmakam added a comment.

Geoff, there are 2 reasons for doing this too late. First, for the benchmark I looked at which is mcf, these patterns occur very late only after branchfolding. My initial implementation to do this at AArch64ConditionOptimizer did not catch all the interesting cases. Second, this is a type of branch relaxation optimization because the branch displacement of cbz is better than a conditional branch IMHO.


http://reviews.llvm.org/D18572





More information about the llvm-commits mailing list