[llvm-commits] [PATCH]: disable ADDIC/imm32 optimizations on PPC64

Chris Lattner clattner at apple.com
Fri Jun 17 09:50:29 PDT 2011


On Jun 17, 2011, at 8:30 AM, Roman Divacky wrote:

> Hi there!
> 
> In the PowerPC backend there's an DAG optimization for 
> imm32=={0,-1} etc. using ADDIC instruction. This uses
> the fact that ADDIC sets the carry bit on overlow.
> 
> This of course does not work on PPC64 because registers
> there are 64bit so no overflow happens with 32bit immediate.
> 
> The attached patch disables these optimizations on PPC64.
> With this patch I am able to compile a running "vim" at -O2.

Ok with a testcase, thanks!

-Chris



More information about the llvm-commits mailing list