[flang-commits] [PATCH] D139151: [flang] Fold the RHS of assignment

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Dec 1 15:27:43 PST 2022


klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

In order to emit overflow warnings from assignment statements whose
right-hand sides are constants that undergo conversions, run the
right-hand sides of assignments through constant folding after the
conversions have been made explicit in expression analysis.


https://reviews.llvm.org/D139151

Files:
  flang/lib/Semantics/expression.cpp
  flang/test/Evaluate/errors01.f90
  flang/test/Lower/Intrinsics/system_clock.f90
  flang/test/Lower/array-expression.f90
  flang/test/Lower/array-temp.f90
  flang/test/Semantics/boz-literal-constants.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139151.479453.patch
Type: text/x-patch
Size: 60548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221201/565fbcf4/attachment-0001.bin>


More information about the flang-commits mailing list