[all-commits] [llvm/llvm-project] 67f15e: [flang] Fold IS_IOSTAT_END() & IS_IOSTAT_EOR() (#7...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Nov 13 14:07:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67f15e76ebd23f659168f845f9660d3e5e9c606c
      https://github.com/llvm/llvm-project/commit/67f15e76ebd23f659168f845f9660d3e5e9c606c
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2023-11-13 (Mon, 13 Nov 2023)

  Changed paths:
    M flang/lib/Evaluate/fold-logical.cpp
    A flang/test/Evaluate/fold-iostat.f90

  Log Message:
  -----------
  [flang] Fold IS_IOSTAT_END() & IS_IOSTAT_EOR() (#70971)

These intrinsic functions are not particularly valuable -- one can just
compare a value to IOSTAT_END or IOSTAT_EOR directly -- but they are in
the standard and are allowed to appear in constant expressions, so
here's code to fold them.




More information about the All-commits mailing list