[llvm-commits] [PATCH] optimization of x == -y for X86
Jay Foad
jay.foad at gmail.com
Fri Apr 27 11:22:16 PDT 2012
On 27 April 2012 19:12, manman ren <mren at apple.com> wrote:
>
> This patch optimizes codegen for if(x==-y) on x86
> from
> negl %esi
> cmpl %esi, %edi
> je .LBB0_2
> to
> addl %esi, %edi
> je .L4
> Index: test/CodeGen/X86/neg_cmp.ll
> ===================================================================
> --- test/CodeGen/X86/neg_cmp.ll (revision 0)
> +++ test/CodeGen/X86/neg_cmp.ll (revision 0)
> @@ -0,0 +1,21 @@
> +; RUN: llc < %s -march=x86-64 | FileCheck %s
> +
> +; rdar://11245199
Can you mention PR 12545 please? I don't think I have access to rdar:// (do I?).
Thanks for fixing it!
Jay.
More information about the llvm-commits
mailing list