[all-commits] [llvm/llvm-project] 9b225d: Fix complex abs with nnan/ninf. (#95080)

Johannes Reifferscheid via All-commits all-commits at lists.llvm.org
Tue Jun 11 04:44:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b225d01f8edf08153aa704f534a5a6676384fc2
      https://github.com/llvm/llvm-project/commit/9b225d01f8edf08153aa704f534a5a6676384fc2
  Author: Johannes Reifferscheid <jreiffers at google.com>
  Date:   2024-06-11 (Tue, 11 Jun 2024)

  Changed paths:
    M mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
    M mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir

  Log Message:
  -----------
  Fix complex abs with nnan/ninf. (#95080)

The current logic tests for inf/inf and 0/0 inputs using a NaN check.
This doesn't work with all fastmath flags. With nnan and ninf, we can
just check for a 0 maximum. With only nnan, we have to check for both
cases separately.



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