OSDN Git Service

DeadArgumentElimination: keep return value on functions that have a live argument...
authorStephen Lin <stephenwlin@gmail.com>
Sun, 30 Jun 2013 20:26:21 +0000 (20:26 +0000)
committerStephen Lin <stephenwlin@gmail.com>
Sun, 30 Jun 2013 20:26:21 +0000 (20:26 +0000)
commit3f4385a0b6f52ff0feb99ddb6431b7e7960b13af
treef59374abdad44b641c1f978d95a463c1a6f13cee
parent80c070493d657a4bcc6eca5627c28d659d3330d8
DeadArgumentElimination: keep return value on functions that have a live argument with the 'returned' attribute (rather than generate invalid IR); however, if both can be eliminated, both will be

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185290 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/DeadArgumentElimination.cpp
test/Transforms/DeadArgElim/returned.ll [new file with mode: 0644]