[all-commits] [llvm/llvm-project] 9d50aa: [Clang][CodeGen] Promote in complex compound divas...

Mészáros Gergely via All-commits all-commits at lists.llvm.org
Tue Mar 18 13:10:38 PDT 2025


  Branch: refs/heads/users/Maetveis/complex-promoted-fix-assign
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d50aa09e1f06ec145715896173750414ec75c0d
      https://github.com/llvm/llvm-project/commit/9d50aa09e1f06ec145715896173750414ec75c0d
  Author: Gergely Meszaros <meszaros.gergely97 at gmail.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M clang/lib/CodeGen/CGExprComplex.cpp
    M clang/test/CodeGen/cx-complex-range.c

  Log Message:
  -----------
  [Clang][CodeGen] Promote in complex compound divassign

When `-fcomplex-arithmetic=promoted` is set complex divassign `/=` should
promote to a wider type the same way division (without assignment) does.
Prior to this change, Smith's algorithm would be used for divassign.

Fixes: https://github.com/llvm/llvm-project/issues/131129



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list