<div dir="ltr">PR16069 is an interesting case where an incoming value to a PHI is a trap value while also being a 'ConstantExpr'.<div><br></div><div style>We do not consider this case when performing the 'HoistThenElseCodeToIf' optimization.</div>
<div style><br></div><div style>The attached patch will make our modifications more conservative if we detect that we cannot transform the PHI to a select.</div><div style><br></div><div style>-- </div><div style>David Majnemer</div>
</div>