[llvm-commits] [PATCH] Update peephole optimization for ARM: modified OptimizeCompare
Jim Grosbach
grosbach at apple.com
Wed May 9 11:04:04 PDT 2012
Hi Manman,
There are subtleties here. See <rdar://problem/11081762>.
-Jim
On May 8, 2012, at 6:05 PM, Manman Ren wrote:
>
> The purpose is to optimize the following cases:
> // sub r1, r3
> // cmp r3, r1 or cmp r1, r3
> // bge L1
>
> // sub r1, imm
> // cmp r1, imm
> // bge L1
>
> // If the branch instruction can use flag from "sub", then we can eliminate
> // the "cmp" instruction.
>
>
> Comments are welcome.
>
> Thanks,
> Manman
> <peephole_sub_cmp.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list