[all-commits] [llvm/llvm-project] 1ef5e6: [flang] Make SQRT folding exact

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jun 23 11:22:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ef5e6de7605434cb6316847a46eb01c23c70715
      https://github.com/llvm/llvm-project/commit/1ef5e6de7605434cb6316847a46eb01c23c70715
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-23 (Thu, 23 Jun 2022)

  Changed paths:
    M flang/lib/Evaluate/real.cpp
    M flang/test/Evaluate/folding28.f90
    M flang/unittests/Evaluate/real.cpp

  Log Message:
  -----------
  [flang] Make SQRT folding exact

Replace the latter half of the SQRT() folding algorithm with code that
calculates an exact root with extra rounding bits, and then lets the
usual normalization and rounding code do the right thing.  Extend
tests to catch regressions.

Differential Revision: https://reviews.llvm.org/D128395




More information about the All-commits mailing list