[llvm-commits] [PATCH] optimization of max-like struct for x86

Evan Cheng evan.cheng at apple.com
Wed Apr 25 14:24:55 PDT 2012


Have you considered making this into a target independent dag combine?

Evan

On Apr 25, 2012, at 9:33 AM, Manman Ren <mren at apple.com> wrote:

> 
> This patch is intended to optimize the following cases for x86:
> (b > a) ? (b-a) : 0
> (a < b) ? (b-a) : 0
> It will use cmovs in generated x86 code.
> 
> The patch modified one source file: lib/Target/X86/X86ISelLowering.cpp
> 
> Please review & provide feedback.
> Thanks,
> 
> <opt_max_x86.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