commit | 3931bdb788774e33dd623d6b9142ae69542c33aa | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Mon Jun 03 20:43:12 2013 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Mon Jun 03 20:43:12 2013 +0000 |
tree | c9fa7476a4a2bae4cdd7af18d4f87ea38d558c9e | |
parent | 404fa7257fae8e4252cd4d01017e97ab6062ab27 [diff] |
SimplifyCFG: Do not transform PHI to select if doing so would be unsafe PR16069 is an interesting case where an incoming value to a PHI is a trap value while also being a 'ConstantExpr'. We do not consider this case when performing the 'HoistThenElseCodeToIf' optimization. Instead, make our modifications more conservative if we detect that we cannot transform the PHI to a select. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183152 91177308-0d34-0410-b5e6-96231b3b80d8