[SCCP] Remove manual folding of terminator instructions.
authorDavide Italiano <davide@freebsd.org>
Mon, 5 Dec 2016 23:04:21 +0000 (23:04 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 5 Dec 2016 23:04:21 +0000 (23:04 +0000)
commit3dad93d9ef8a144d8928a8da130c790ffcd6c043
tree1616429a926333561761b79f2ccc3634d03c6908
parentebd5350d855d0c017f06b02ae95890ea30c45eea
[SCCP] Remove manual folding of terminator instructions.

There are two cases handled here:
1) a branch on undef
2) a switch with an undef condition.

Both cases are currently handled by ResolvedUndefsIn. If we have
a branch on undef, we force its value to false (which is trivially
foldable). If we have a switch on undef, we force to the first
constant (which is also foldable).

llvm-svn: 288725
llvm/lib/Transforms/Scalar/SCCP.cpp