[llvm-commits] [patch][pr12251] Use the range metadata in computeMaskedBits and add an optimization to InstructionSimplify.

Joerg Sonnenberger joerg at britannica.bec.de
Sat Mar 24 22:04:28 PDT 2012


On Fri, Mar 23, 2012 at 10:56:50PM -0400, Rafael EspĂ­ndola wrote:
> And the assembly changes from
> 
> 	movb	(%rdi), %al
> 	andb	$1, %al
> 	ret
> 
> To
> 
> 	cmpb	$0, (%rdi)
> 	setne	%al
> 	ret
> 
> Not sure if the assembly change is an improvement, so maybe this patch
> should go in with a change to return i8, but I am sending it for
> review first.

The second form is 2 Bytes larger at least.

Joerg



More information about the llvm-commits mailing list