IR: Simplify replaceOperandWith(), NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 18:01:45 +0000 (18:01 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 18:01:45 +0000 (18:01 +0000)
commite5e4a9a4dfce82ddc4b7dd70d46e77952b766169
treebd27ba39a6521a940d33e946f99b33ccae7e62cf
parent21245280cc8b7d5120c63ddc4388c08181cb340c
IR: Simplify replaceOperandWith(), NFC

This will call `handleChangedOperand()` less frequently, but in that
case (i.e., `isStoredDistinctInContext()`) it has identical logic to
here.

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