[all-commits] [llvm/llvm-project] e1b9d0: [MLIR][Math] Fix math.ceil expansion to avoid unde...
Hank via All-commits
all-commits at lists.llvm.org
Wed Feb 11 09:36:54 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e1b9d033cdbd957a6a4adb684340298e98b1b06a
https://github.com/llvm/llvm-project/commit/e1b9d033cdbd957a6a4adb684340298e98b1b06a
Author: Hank <49036880+hankluo6 at users.noreply.github.com>
Date: 2026-02-11 (Wed, 11 Feb 2026)
Changed paths:
M mlir/lib/Dialect/Math/Transforms/ExpandOps.cpp
M mlir/test/Dialect/Math/expand-math.mlir
Log Message:
-----------
[MLIR][Math] Fix math.ceil expansion to avoid undefined behavior on Inf/NaN (#170028)
Fixes #151786
The original `ceilf` expansion lowers to `fptosi`, which produces poison
for Inf, and any subsequent use leads to undefined behavior. This patch
adds a safe path, similar to the existing `round` expansion, for large
or special inputs and avoids the UB.
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