Skip to content
  1. Jun 05, 2013
  2. Jun 04, 2013
  3. Jun 03, 2013
    • David Majnemer's avatar
      SimplifyCFG: Do not transform PHI to select if doing so would be unsafe · c82f27af
      David Majnemer authored
      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.
      
      llvm-svn: 183152
      c82f27af
Loading