Investment banks, such as Morgan Stanley and Goldman Sachs, may be hoping that a recent flurry of M&A deals could indicate the end of a slow period for dealmaking.