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

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 11:07:45 PDT 2016


gberry added a comment.

If you change the operands of the icmps to be a function parameter instead of undefs I think it makes for a better example/test.

If you were able to do this at the IR level, I believe the relevant transformation would be to convert the second icmp (the sgt 0 one) into an icmp ne 0


http://reviews.llvm.org/D18572





More information about the llvm-commits mailing list