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

Roman Divacky rdivacky at freebsd.org
Fri Jun 17 08:30:03 PDT 2011


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 to commit?

roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powerpc-misc2-64bit.patch
Type: text/x-diff
Size: 3967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110617/d0e0029d/attachment.patch>


More information about the llvm-commits mailing list