[llvm-commits] [llvm] r131863 - /llvm/trunk/lib/Target/README.txt

Dan Gohman gohman at apple.com
Mon May 23 13:03:07 PDT 2011


On May 22, 2011, at 11:28 AM, Chris Lattner wrote:

> Author: lattner
> Date: Sun May 22 13:28:46 2011
> New Revision: 131863
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=131863&view=rev
> Log:
> add a note.
> 
> Modified:
>    llvm/trunk/lib/Target/README.txt
> 
> Modified: llvm/trunk/lib/Target/README.txt
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=131863&r1=131862&r2=131863&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/README.txt (original)
> +++ llvm/trunk/lib/Target/README.txt Sun May 22 13:28:46 2011
> @@ -2346,3 +2346,13 @@
> because one call is passing an i32 and the other is passing an i64.
> 
> //===---------------------------------------------------------------------===//
> +
> +I see this sort of pattern in 176.gcc in a few places (e.g. the start of
> +store_bit_field).  The rem should be replaced with a multiply and subtract:
> +
> +  %3 = sdiv i32 %A, %B
> +  %4 = srem i32 %A, %B
> +
> +Similarly for udiv/urem.

… but only on targets which don't do div+rem in a single operation.

Dan





More information about the llvm-commits mailing list