[SCCP] Zap multiple return values.
authorDavide Italiano <davide@freebsd.org>
Wed, 20 Jul 2016 20:17:13 +0000 (20:17 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 20 Jul 2016 20:17:13 +0000 (20:17 +0000)
commit15ff2d6d0cc422dc672f3726f05ac98f85992e42
treeaf90cb5171c1931b412e58842f863f54ea04bb53
parenta088bce959182f938a1643c1301384bcc4d35da6
[SCCP] Zap multiple return values.

We can replace the return values with undef if we replaced all
the call uses with a constant/undef.

Differential Revision:  https://reviews.llvm.org/D22336

llvm-svn: 276174
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/test/Transforms/SCCP/dont-zap-return.ll [new file with mode: 0644]
llvm/test/Transforms/SCCP/ipsccp-basic.ll