[llvm-commits] [PATCH] simplify various Instructions' resizeOperands() methods

Chris Lattner clattner at apple.com
Thu Mar 31 17:13:19 PDT 2011


On Mar 30, 2011, at 5:27 AM, Jay Foad wrote:

> Various Instructions have resizeOperands() methods. Since this patch:
> 
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110328/118717.html
> 
> ... they are all only called with an argument of 0. Simplify them accordingly.
> 
> (Maybe resizeOperands() should be renamed now that it always just
> grows the list of operands by some constant factor, but I couldn't
> think of a good new name.)
> 
> Tested with "make check", LLVM and Clang. OK to apply?

Looks good to me, with the rename to "growOperands".  Thanks Jay!

-Chris



More information about the llvm-commits mailing list