llvm-project/flang/lib/Optimizer/Dialect
Valentin Clement ab8e1e6e5a
[flang] Do not fold fir.box_addr when it has a slice
This patch avoids to fold `fir.box_addr` when the defining `fir.embox` op
has a slice. If the op is folded the slice information are lost.

This kind of problem occurred with code like:

```
call check(y(half+1:))
```

where `y` is an array.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D123392
2022-04-08 21:16:55 +02:00
..
CMakeLists.txt [flang][NFC] Move current inliner files in Dialect directory 2022-01-20 13:34:44 +01:00
FIRAttr.cpp [flang][NFC] Fix includes order 2022-01-19 14:32:48 +01:00
FIRDialect.cpp [flang] Remove 'using namespace mlir;` from header files 2022-03-09 10:19:51 +00:00
FIROps.cpp [flang] Do not fold fir.box_addr when it has a slice 2022-04-08 21:16:55 +02:00
FIRType.cpp [flang] Lower statement function 2022-03-18 14:47:16 +01:00
Inliner.cpp [flang][NFC] Move current inliner files in Dialect directory 2022-01-20 13:34:44 +01:00