[flang-commits] [PATCH] D154086: [flang] Fix array substring emboxing code generation

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Jun 29 07:23:00 PDT 2023


jeanPerier created this revision.
jeanPerier added reviewers: vzakhari, PeteSteinfeld.
jeanPerier added a project: Flang.
Herald added subscribers: sunshaoce, mehdi_amini, jdoerfert.
Herald added a project: All.
jeanPerier requested review of this revision.

The code generation of the fir.embox op creating descriptors for
array substring with a non constant length base was using the
substring length to compute the first dimension result stride.
Fix it to use the input length instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154086

Files:
  flang/lib/Optimizer/CodeGen/CodeGen.cpp
  flang/test/Fir/embox-substring.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154086.535784.patch
Type: text/x-patch
Size: 6101 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230629/d8c01d3d/attachment.bin>


More information about the flang-commits mailing list