[all-commits] [llvm/llvm-project] ccd931: [MLIR][Utils] Fix overflow in constantTripCount fo...
Jhalak Patel via All-commits
all-commits at lists.llvm.org
Mon Feb 9 14:59:10 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ccd93180e0f8067cd43551adaa4296b64ca43992
https://github.com/llvm/llvm-project/commit/ccd93180e0f8067cd43551adaa4296b64ca43992
Author: Jhalak Patel <jhalakpatel at outlook.com>
Date: 2026-02-09 (Mon, 09 Feb 2026)
Changed paths:
M mlir/include/mlir/Dialect/Utils/StaticValueUtils.h
M mlir/lib/Dialect/Utils/StaticValueUtils.cpp
M mlir/test/Dialect/SCF/trip_count.mlir
Log Message:
-----------
[MLIR][Utils] Fix overflow in constantTripCount for narrow types (#179985)
Extend operands when computing ub - lb to avoid overflow in signed
arithmetic. E.g., i8: ub=127, lb=-128 yields 255, which overflows
without extension.
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