[llvm-commits] [llvm] r131455 - /llvm/trunk/lib/Target/X86/README.txt
pageexec at freemail.hu
pageexec at freemail.hu
Tue May 17 00:45:33 PDT 2011
On 17 May 2011 at 7:22, Chris Lattner wrote:
> +into:
> + movl $-1, %eax
> + lock
> + xaddl %eax, (%rdi)
> + cmpl $1, %eax
> + je LBB0_2
> +
> +Instead we could generate:
> +
> + lock
> + dec %rdi
^^^^
you probably meant dec (%rdi) ?
> + je LBB0_2
> +
> +The trick is to match "fetch_and_add(X, -C) == C".
More information about the llvm-commits
mailing list