[all-commits] [llvm/llvm-project] cea363: [flang] Avoid code duplication in mixed expressions

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Dec 15 13:24:07 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cea3638812210e4a2368fd6cd3e034105d586687
      https://github.com/llvm/llvm-project/commit/cea3638812210e4a2368fd6cd3e034105d586687
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M flang/lib/Evaluate/tools.cpp

  Log Message:
  -----------
  [flang] Avoid code duplication in mixed expressions

Rather than represent the mixed real/complex subexpression x*(a,b)
as (x*a,x*b), use (x,0)*(a,b) to avoid a potential code duplication
in current lowering code.  Same for mixed division, and for mixed
integer*complex and integer/complex cases.

Differential Review: https://reviews.llvm.org/D115732




More information about the All-commits mailing list