[flang-commits] [flang] [Flang] Canonicalize divdc3 calls into arithmetic-based complex division (PR #146017)
via flang-commits
flang-commits at lists.llvm.org
Fri Jun 27 03:26:53 PDT 2025
Hanwen-ece wrote:
> Thank you for working on this!
>
> Actually, we've been discussing a similar feature on Discourse. You can refer to it here if you're interested: (https://discourse.llvm.org/t/optimization-of-complex-number-division/83468)
>
> I'm currently working on a feature based on the discussion at the end of that thread, and I plan to post the patch next week. In that patch, specifying the newly added driver option `-fcomplex-arithmetic=basic` will allow complex number division to be expanded into a algebraic formula instead of using a runtime function.
https://github.com/llvm/llvm-project/pull/146017
More information about the flang-commits
mailing list