> Instead of walking from 1 .. FTy->getNumParams(), you should walk from  
> 1 .. CI->getNumOperands().  This handles varargs right and is simpler.

Instead of either of these, grab the parameter attributes (PAL),
walk from 0 to PAL->size()-1 and get the attributes using
getParamAttrsAtIndex.  That way the time taken is proportional
to the number of parameters with attributes, rather than the
number of parameters.

D.
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to