[all-commits] [llvm/llvm-project] 0db3d8: [MLIR][Arith] SelectOp fix invalid folding
7FM via All-commits
all-commits at lists.llvm.org
Mon Nov 25 04:47:17 PST 2024
Branch: refs/heads/users/7FM/arith_selectop_folder_fix
Home: https://github.com/llvm/llvm-project
Commit: 0db3d87bf8682a7957b81ba64825cbd850448077
https://github.com/llvm/llvm-project/commit/0db3d87bf8682a7957b81ba64825cbd850448077
Author: 7FM <41307817+7FM at users.noreply.github.com>
Date: 2024-11-25 (Mon, 25 Nov 2024)
Changed paths:
M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
Log Message:
-----------
[MLIR][Arith] SelectOp fix invalid folding
The pattern `select %x, true, false => %x` is only valid in case that the return type is identical to the type of `%x` (i.e., i1).
Hence, the check `isInteger(1)` was replaced with `isSignlessInteger(1)`.
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