IR: Reduce RAUW traffic in ConstantVector
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 02:24:46 +0000 (02:24 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 02:24:46 +0000 (02:24 +0000)
commit4d48c3f2a498d169af596871cd23ce7b6e961d43
treea6bb4b75801f64bee10f8c0e8dfddac898e62dbe
parent3b666f3b591b2e251e0edde332b98bfd9ee25cfd
IR: Reduce RAUW traffic in ConstantVector

Avoid creating a new `ConstantVector` on an RAUW of one of its members.
This reduces RAUW traffic on any containing constant.

This is part of PR20515.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215966 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Constants.cpp