Implement a few optimizations for vector push_back and insert.  Fixes r10828365.

llvm-svn: 150542
3 files changed