[all-commits] [llvm/llvm-project] 9daec0: [fir] Avoid slice with substr in fir.array_load, f...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Tue Oct 26 12:44:46 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9daec0955132e6e33b086edc63c6f3e0f5712323
https://github.com/llvm/llvm-project/commit/9daec0955132e6e33b086edc63c6f3e0f5712323
Author: Valentin Clement <clementval at gmail.com>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M flang/include/flang/Optimizer/Dialect/FIROps.td
M flang/include/flang/Optimizer/Dialect/FIRTypes.td
M flang/lib/Optimizer/Dialect/FIROps.cpp
M flang/test/Fir/invalid.fir
Log Message:
-----------
[fir] Avoid slice with substr in fir.array_load, fir.array_coor and fir.array_merge_store
Substring information on slice operation has been added in D112441.
The operations fir.array_load, fir.array_coor and fir.array_merge_store can take
a slice but not with a substring. This patch add this check in their verifier.
This patch is part of the upstreaming effort from fir-dev branch.
Reviewed By: schweitz
Differential Revision: https://reviews.llvm.org/D112568
More information about the All-commits
mailing list