[llvm-commits] CVS:	llvm/include/llvm/CodeGen/CallingConvLower.h SelectionDAG.h	SelectionDAGNodes.h ValueTypes.h
    Chris Lattner 
    clattner at apple.com
       
    Mon Jun 25 23:11:25 PDT 2007
    
    
  
On Jun 25, 2007, at 11:02 PM, Chris Lattner wrote:
>> +  /// MVT::isExtendedValueType - Test if the given ValueType is  
>> extended
>> +  /// (as opposed to being simple).
>> +  static inline bool isExtendedValueType(ValueType VT) {
>> +    return VT & ~SimpleTypeMask;
>>    }
Oh, one other thing.  Empirically, GCC is not optimizing this to VT >  
255, which hurts on ppc and probably other targets (as this is often  
inlined into if conditions).  Since this is frequently executed,  
could you please manual do this xform?
yes, llvm does get this right. :)
-Chris
    
    
More information about the llvm-commits
mailing list