[all-commits] [llvm/llvm-project] 514691: [ConstantFolding] Fix incorrect nvvm_round folding...
Lewis Crawford via All-commits
all-commits at lists.llvm.org
Fri Aug 1 02:32:04 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 51469174074b478e7a5fe0f8c69452b1d6752e30
https://github.com/llvm/llvm-project/commit/51469174074b478e7a5fe0f8c69452b1d6752e30
Author: Lewis Crawford <lcrawford at nvidia.com>
Date: 2025-08-01 (Fri, 01 Aug 2025)
Changed paths:
M llvm/lib/Analysis/ConstantFolding.cpp
M llvm/test/Transforms/InstSimplify/const-fold-nvvm-unary-arithmetic.ll
Log Message:
-----------
[ConstantFolding] Fix incorrect nvvm_round folding (#151563)
The `nvvm_round` intrinsic should round to the nearest even number in
the case of ties. It lowers to PTX `cvt.rni`, which will "round to
nearest integer, choosing even integer if source is equidistant between
two integers", so it matches the semantics of `rint` (and not `round` as
the name suggests).
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