1. Jun 21, 2022
  2. Jun 20, 2022
    • David Candler's avatar
      [ConstantFolding] Respect denormal handling mode attributes when folding instructions · d3919a8c
      David Candler authored
      Depending on the environment, a floating point instruction should
      treat denormal inputs as zero, and/or flush a denormal output to zero.
      Denormals are not currently accounted for when an instruction gets
      folded to a constant, which can lead to differences in output between
      a folded and a unfolded instruction when running on the target. The
      denormal handling mode can be set by the function level attribute
      denormal-fp-math, which this patch uses to determine whether any
      denormal inputs to or outputs from folding should be zero, and that
      the sign is set appropriately.
      
      Reviewed By: spatel
      
      Differential Revision: https://reviews.llvm.org/D116952
      d3919a8c