[PATCH][X86] Add patterns to catch a specific add with carry

Andrea Di Biagio andrea.dibiagio at gmail.com
Tue Jul 15 07:23:22 PDT 2014


Hi Cameron,

The patch looks good to me.
As a side note, you can probably remove the extra attributes from
functions @testi32 and @testi64.

Cheers,
Andrea

On Mon, Jul 14, 2014 at 7:33 PM, Cameron McInally
<cameron.mcinally at nyu.edu> wrote:
> Hey guys,
>
> Here are a few patterns to catch a specific add with carry.
>
> LLVM is currently generating:
>
> add   %1, %2
> add   %x, %y
> addc $0, %2
>
> This patch will generate:
>
> add   %x, %y
> addc %1, %2
>
> Tx,
> Cameron
>
> _______________________________________________
> 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