llvm-project/flang/lib/Optimizer/CodeGen
Jean Perier 0601a0dc01 [flang] Fix fir.embox codegen with constant interior shape
Fix https://github.com/flang-compiler/f18-llvm-project/issues/1416.

The `constRows` variable was being decremented too soon, causing the
last constant interior dimension extent being used to multiply the GEP
offset. This lead to wrong address computation and caused segfaults.

Note: also upstream fir.embox tests that can be upstreamed.

Differential Revision: https://reviews.llvm.org/D123130
2022-04-05 17:27:03 +02:00
..
BoxedProcedure.cpp [flang] Lower boxed procedure 2022-03-22 15:41:11 +01:00
CGOps.cpp
CGOps.h [flang] Remove 'using namespace mlir;` from header files 2022-03-09 10:19:51 +00:00
CMakeLists.txt [flang] Lower boxed procedure 2022-03-22 15:41:11 +01:00
CodeGen.cpp [flang] Fix fir.embox codegen with constant interior shape 2022-04-05 17:27:03 +02:00
DescriptorModel.h [fir] Add fir.extract_value and fir.insert_value conversion 2021-11-07 21:59:01 +01:00
PassDetail.h
PreCGRewrite.cpp [flang] Remove 'using namespace mlir;` from header files 2022-03-09 10:19:51 +00:00
Target.cpp [flang] Add Win32 to the list of supported triples 2022-02-16 21:43:13 +00:00
Target.h [flang][codegen] Add type conversion for `fir.boxchar` 2021-11-11 10:28:40 +00:00
TargetRewrite.cpp [flang] Lower boxed procedure 2022-03-22 15:41:11 +01:00
TypeConverter.h [flang] Lower boxed procedure 2022-03-22 15:41:11 +01:00