If we know the extent at compile time, it is better to generate anarith.constant than hlfir.get_extent. This gives more information earlier in compilation (before hflir.get_extent is lowered).
Details
Details
Summary
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 24 2023, 6:18 AM
tblah retitled this revision from Summary:
If we know the extent at compile time, it is better to generate an
arith.constant. This gives more information earlier in compilation
(before hflir.get_extent is lowered). to [flang][hlfir] get constant extents when possible.Apr 24 2023, 6:21 AM
This revision is now accepted and ready to land.Apr 24 2023, 6:50 AM
tblah added a child revision: D149067: [flang][hlfir] inline hlfir.transpose as hlfir.elemental.Apr 24 2023, 9:03 AM
Closed by commit rG5156d1a797be: [flang][hlfir] get constant extents when possible (authored by tblah). · Explain WhyApr 25 2023, 5:45 AM
This revision was automatically updated to reflect the committed changes.