[flang-commits] [flang] [flang] Set KIND in compiler generated COUNT for SIZE(PACK) (PR #79801)

via flang-commits flang-commits at lists.llvm.org
Mon Jan 29 07:52:13 PST 2024


jeanPerier wrote:

> Why not convert the result of `COUNT` to the desired kind -- wouldn't that be less hassle?

Do you mean changing the characteristics inside what is returned by Probe, or adding a Convert<> node after the result ?

I did not do the latter to avoid lowering COUNT with an INTEGER(4) result which could be too small. The former seemed more "hacky" (and would not unparse correctly I think) but may indeed be easier.

https://github.com/llvm/llvm-project/pull/79801


More information about the flang-commits mailing list