diff options
author | 7FM <chill_dein_leben@gmx.de> | 2024-11-26 15:11:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 09:11:00 -0500 |
commit | 619e4b7154606f315572ba54c0fe6c1f6c8848a0 (patch) | |
tree | 59a09cf93399ba7e65b11b5d626feb7899bc7b86 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 59b3630e032d7e92079667891e7cf585c7fe313d (diff) | |
download | llvm-619e4b7154606f315572ba54c0fe6c1f6c8848a0.zip llvm-619e4b7154606f315572ba54c0fe6c1f6c8848a0.tar.gz llvm-619e4b7154606f315572ba54c0fe6c1f6c8848a0.tar.bz2 |
[MLIR][Arith] SelectOp fix invalid folding (#117555)
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)`.
Fixes: https://github.com/llvm/llvm-project/issues/117554
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions