commit | 8ea5797013603a088dd6be6ad49d1a117f1955e2 | [log] [tgz] |
---|---|---|
author | Davide Italiano <davide@freebsd.org> | Mon Dec 05 23:04:21 2016 +0000 |
committer | Davide Italiano <davide@freebsd.org> | Mon Dec 05 23:04:21 2016 +0000 |
tree | 30a232aebfa040eb1545e021ffdf1afe227a40c8 | |
parent | fb77f46543308a485db165f52ee49309f76e5106 [diff] |
[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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288725 91177308-0d34-0410-b5e6-96231b3b80d8