[all-commits] [llvm/llvm-project] 0823f4: [ConstantFolding] Fix nvvm_round folding on PPC (#...

Lewis Crawford via All-commits all-commits at lists.llvm.org
Mon Jul 21 09:49:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0823f4ff086e5352f7543b68ce6e7823498cf44b
      https://github.com/llvm/llvm-project/commit/0823f4ff086e5352f7543b68ce6e7823498cf44b
  Author: Lewis Crawford <lcrawford at nvidia.com>
  Date:   2025-07-21 (Mon, 21 Jul 2025)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  [ConstantFolding] Fix nvvm_round folding on PPC (#149837)

Fix a failing test for constant-folding the nvvm_round intrinsic. The
original implementation added in #141233 used a native libm call to the
"round" function, but on PPC this produces +0.0 if the input is -0.0,
which caused a test failure.

This patch updates it to use APFloat functions instead of native libm
calls to ensure cross-platform consistency.



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