[llvm-commits] [llvm] r48143 - in /llvm/trunk/lib/Target/PowerPC: PPCISelLowering.cpp PPCInstrInfo.cpp PPCInstrInfo.td PPCRegisterInfo.cpp PPCRegisterInfo.td

Chris Lattner clattner at apple.com
Mon Mar 10 12:17:16 PDT 2008

On Mar 10, 2008, at 7:12 AM, Nicolas Geoffray wrote:

> Author: geoffray
> Date: Mon Mar 10 09:12:10 2008
> New Revision: 48143
> URL: http://llvm.org/viewvc/llvm-project?rev=48143&view=rev
> Log:
> Add description of individual bits in CR. This fix PR1765.

Nice!  I wonder if this facility could be used to make some of the  
other stuff that works with CR bits more efficient and general.  In  
particular, PPCTargetLowering::LowerINTRINSIC_WO_CHAIN does some  
juggling for altivec compares which would be more efficient if done in  
terms of cr ops than in terms of integer ops I think.  There is also  
the long-standing codegen deficiency on code like "if ((x < y) | (a !=  
14))' which should be two compares and a cror.

I don't know if you're interested in looking at these, but they seem  
related :)


More information about the llvm-commits mailing list