diff options
author | Semyon Khechnev <91785625+s-khechnev@users.noreply.github.com> | 2024-04-27 08:29:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 01:29:11 -0400 |
commit | 9145514fde484916971e6bb147c18f9235a9f2b5 (patch) | |
tree | deeffe39f3fe762947993866af5e7a33f316dd01 /llvm/unittests/ADT/StringRefTest.cpp | |
parent | 85a9528aa1f2d54379bf972908e12ee2a6f07b4b (diff) | |
download | llvm-9145514fde484916971e6bb147c18f9235a9f2b5.zip llvm-9145514fde484916971e6bb147c18f9235a9f2b5.tar.gz llvm-9145514fde484916971e6bb147c18f9235a9f2b5.tar.bz2 |
[mlir][arith] fix canonicalization of mulsi_extended for i1 (#90150)
There is the `MulSIExtendedRHSOne` canonicalization for
arith.mulsi_extended that is defined as follows: `mulsi_extended(x, 1)
-> [x, extsi(cmpi slt, x, 0)]`. In the implementation of this, there is
a `IsScalarOrSplatOne` constraint for the second argument. However, this
constraint does not correctly handle situation when multiplying i1
values. Therefore, an additional constraint has been added which checks
the second argument for strict positivity.
fix #88732
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
0 files changed, 0 insertions, 0 deletions