[all-commits] [llvm/llvm-project] 39f186: [flang] Fold NORM2() (#66240)
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Sep 18 08:58:33 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 39f1860dccf224f9151f5f3c7e86b84f153d142a
https://github.com/llvm/llvm-project/commit/39f1860dccf224f9151f5f3c7e86b84f153d142a
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2023-09-18 (Mon, 18 Sep 2023)
Changed paths:
M flang/lib/Evaluate/fold-integer.cpp
M flang/lib/Evaluate/fold-logical.cpp
M flang/lib/Evaluate/fold-real.cpp
M flang/lib/Evaluate/fold-reduction.h
A flang/test/Evaluate/fold-norm2.f90
Log Message:
-----------
[flang] Fold NORM2() (#66240)
Fold references to the (relatively new) intrinsic function NORM2 at
compilation time when the argument(s) are all constants. (Getting this
done right involved some changes to the API of the accumulator function
objects used by the DoReduction<> template, which rippled through some
other reduction function folding code.)
More information about the All-commits
mailing list