jeanPerier
aeaf319b8c
[flang] avoid useless rebox of polymorphic scalars ( #145507 )
...
Do not create new descriptor for polymorphic scalars when lowering
hlfir.declare.
hlfir.declare of box/class is lowered to a fir.rebox to ensure that
local lower bounds and descriptor attributes (Pointer/Allocatable/None)
are properly set-up in the descriptor associated to the symbol.
For polymorphic scalar, this created a useless temporary descriptor.
This was breaking invalid code #145256 that violates OPTIONAL usage
rules. I am not fixing it primarily to support this invalid code, but
rather because it is dumb to create a useless fir.rebox.
2025-06-25 09:41:33 +02:00
..
2025-05-20 09:22:05 -07:00
2025-03-21 11:41:04 +01:00
2025-03-21 11:41:04 +01:00
2025-06-10 14:41:14 +02:00
2025-06-06 09:53:41 +02:00
2025-02-28 09:50:05 +01:00
2025-04-04 06:13:30 -07:00
2025-06-11 12:37:34 +01:00
2024-10-03 17:10:57 +02:00
2025-06-10 14:41:14 +02:00
2024-10-03 17:10:57 +02:00
2025-01-16 12:34:38 -08:00
2025-03-21 11:41:04 +01:00
2025-03-21 11:41:04 +01:00
2025-01-16 12:34:38 -08:00
2025-01-16 12:34:38 -08:00
2025-01-16 12:34:38 -08:00
2025-06-10 14:41:14 +02:00
2024-11-21 11:14:21 +09:00
2025-02-28 09:50:05 +01:00
2025-04-04 06:13:30 -07:00
2025-04-04 06:13:30 -07:00
2025-01-16 12:34:38 -08:00
2025-01-16 12:34:38 -08:00
2025-03-21 11:41:04 +01:00
2025-03-21 11:41:04 +01:00
2025-06-10 14:41:14 +02:00
2025-06-25 09:41:33 +02:00
2024-10-03 17:10:57 +02:00
2025-02-28 09:50:05 +01:00
2025-05-12 18:33:29 -07:00
2024-10-03 17:10:57 +02:00
2025-03-21 11:41:04 +01:00
2025-06-06 09:53:41 +02:00
2025-03-21 11:41:04 +01:00
2025-06-10 14:41:14 +02:00
2025-01-29 12:03:05 -08:00
2024-12-02 09:52:29 +01:00
2024-12-02 09:52:29 +01:00
2025-06-18 10:24:08 +02:00
2025-01-29 12:01:13 -08:00
2025-01-28 09:25:36 -08:00
2024-10-10 09:26:04 +01:00
2025-06-06 10:45:38 -07:00
2025-06-06 15:10:17 +01:00
2025-01-27 18:14:02 -08:00
2025-01-16 12:34:38 -08:00
2025-03-21 11:41:04 +01:00
2025-03-21 11:41:04 +01:00
2025-06-11 12:37:34 +01:00
2025-03-21 11:41:04 +01:00
2025-03-21 11:41:04 +01:00
2025-04-15 10:14:58 +01:00
2025-03-21 11:41:04 +01:00
2024-12-13 13:08:02 -08:00
2025-06-06 10:45:38 -07:00
2025-05-12 18:34:12 -07:00
2025-03-21 11:41:04 +01:00
2024-12-05 09:34:32 -08:00
2025-01-03 08:17:52 -08:00
2025-05-22 06:50:25 -07:00
2025-06-06 10:45:26 -07:00
2025-01-03 08:33:14 -08:00
2024-10-03 17:10:57 +02:00
2025-01-31 09:35:26 +00:00
2025-01-16 12:34:38 -08:00
2025-03-21 11:41:04 +01:00
2025-05-12 18:33:47 -07:00
2025-06-10 14:41:14 +02:00
2025-01-27 18:14:02 -08:00
2024-12-12 10:38:34 -08:00
2025-04-18 11:56:07 -07:00
2025-04-18 11:56:07 -07:00
2025-04-18 11:56:07 -07:00
2025-03-03 09:58:20 -08:00
2025-01-17 12:09:44 -08:00
2025-01-15 08:42:57 -08:00
2025-04-30 13:53:26 -07:00
2025-04-30 13:53:26 -07:00
2025-04-30 13:53:26 -07:00
2025-04-30 13:53:26 -07:00
2025-01-30 07:46:12 -08:00
2025-01-10 09:28:03 -08:00
2024-12-16 08:00:29 -08:00
2025-03-21 11:41:04 +01:00
2025-03-21 11:41:04 +01:00
2025-05-02 09:03:20 -07:00
2025-05-02 09:03:20 -07:00
2025-05-02 09:03:20 -07:00
2025-05-02 09:03:20 -07:00
2025-05-02 09:03:20 -07:00