Learn IPConstProp to propagate arguments that are directly returned. Strictly
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 17 Jun 2008 12:20:24 +0000 (12:20 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 17 Jun 2008 12:20:24 +0000 (12:20 +0000)
commit2fbabf6e6dc61e0627b93a596bf13e272345c5e8
treeb7d728f7e4f2eb9a840e088c076b459be91e594a
parent906e423724f9f4409ff8725d0da8ecd09bec23cf
Learn IPConstProp to propagate arguments that are directly returned. Strictly
speaking these are not constant values. However, when a function always returns
one of its arguments, then from the point of view of each caller the return
value is constant (or at least a known value) and can be replaced.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52397 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/IPConstantPropagation.cpp