[llvm-commits] [llvm] r45913 - in /llvm/trunk: include/llvm/Instructions.h lib/VMCore/Instructions.cpp

Duncan Sands duncan.sands at math.u-psud.fr
Sat Jan 12 11:18:59 PST 2008


> 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.



More information about the llvm-commits mailing list