[all-commits] [llvm/llvm-project] bd859c: [flasg] Debug folding of substring references

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jan 14 16:09:21 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd859cb4def4f1b2362babab602f7f194de13928
      https://github.com/llvm/llvm-project/commit/bd859cb4def4f1b2362babab602f7f194de13928
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M flang/include/flang/Evaluate/constant.h
    M flang/lib/Evaluate/constant.cpp
    M flang/lib/Evaluate/fold-implementation.h
    M flang/lib/Evaluate/variable.cpp
    A flang/test/Evaluate/fold-substr.f90

  Log Message:
  -----------
  [flasg] Debug folding of substring references

Character substrings weren't being folded correctly;
add tests and rework the implementation so that substrings
of literals and named constant character scalars & arrays
are properly folded for use in constant expressions.

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




More information about the All-commits mailing list