Learn IPConstProp to look at individual return values and propagate them
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 17 Jun 2008 12:02:52 +0000 (12:02 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 17 Jun 2008 12:02:52 +0000 (12:02 +0000)
commit906e423724f9f4409ff8725d0da8ecd09bec23cf
tree0d58e2bfd400dd1a3bf1c99a492af0044408549b
parent74fc4d968617a1652666bed8aba5e35da86373ce
Learn IPConstProp to look at individual return values and propagate them
individually.

Also learn IPConstProp how returning first class aggregates work, in addition
to old style multiple return instructions.

Modify the return-constants testscase to confirm this behaviour.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52396 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/IPConstantPropagation.cpp
test/Transforms/IPConstantProp/return-constants.ll