IR: Factor out replaceUsesOfWithOnConstantImpl(), NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 02:16:51 +0000 (02:16 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 02:16:51 +0000 (02:16 +0000)
commit6238162cc518a915aba296ddda24311d4974290f
tree3686eb4e14356d87cf2232905b892daf6d9bf7be
parent45d53fd4c4d04b6feb2bc898f0a10ca98643edef
IR: Factor out replaceUsesOfWithOnConstantImpl(), NFC

Factor out common code, and take advantage of the new function to
add early returns to the callers.

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