[flang-commits] [flang] [Flang] Minloc elemental intrinsic lowering (PR #74828)

David Green via flang-commits flang-commits at lists.llvm.org
Tue Dec 12 06:37:56 PST 2023


davemgreen wrote:

Yeah the implementation in SimplifyHLFIRIntrinsics was the same code, just called from a different place (the only real differences was it needed to be more careful about how it was called, because of it using applyFullConversion). With it in OptimizedBufferization it should be after InlineElementals, so should get the benefits of inlining elementals into each other at least.

It sounds like for cases that are reductions like `Any` - they would be the same too. We could lower them similar to this patch by inlining the elemental. Or do you think it would be better for them to work different?

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


More information about the flang-commits mailing list