memcpy with zero length is hugely expensive, so avoid it. This speeds up coallescing...
authorChris Lattner <sabre@nondot.org>
Fri, 10 Aug 2007 07:02:50 +0000 (07:02 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Aug 2007 07:02:50 +0000 (07:02 +0000)
commit4f155b4c8597f40a79add430dfedb2c08ba28375
tree7cea96f18ab657b2508f73db7ae09bd9aa98ef2c
parent02cee38647ea413e5d05f29f67a7f003db9f0081
memcpy with zero length is hugely expensive, so avoid it.  This speeds up coallescing from 1.17s to 0.88s on siod.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40984 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallVector.h