[flang-commits] [flang] [flang] Clean-up for fir.do_loop generation in lowering. (PR #160630)

via flang-commits flang-commits at lists.llvm.org
Thu Sep 25 05:08:27 PDT 2025


jeanPerier wrote:

> Maybe I'm misreading, but looking at the changes to the test, it looks like we're still yielding the original type instead of the primary iv. Why not yield the primary iv and convert the result after the loop? It's still incrementing the user variable?

Slava will know best. My understanding is that using the original variable type helps LLVM vectorizer: https://github.com/llvm/llvm-project/commit/af7edf1557d87026bb4dd4783f60e766538e923c

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


More information about the flang-commits mailing list