diff options
author | Jakub Kuderski <kubak@google.com> | 2023-05-02 10:41:05 -0400 |
---|---|---|
committer | Jakub Kuderski <kubak@google.com> | 2023-05-02 10:44:29 -0400 |
commit | 46740dd02babfc47edd9f8fdb03479ad61223246 (patch) | |
tree | d73f4785181bf03b3b38d6d1ec780d75955eca57 /llvm | |
parent | 707b6e94b88a5bac96157d03756f359060458d08 (diff) | |
download | llvm-46740dd02babfc47edd9f8fdb03479ad61223246.zip llvm-46740dd02babfc47edd9f8fdb03479ad61223246.tar.gz llvm-46740dd02babfc47edd9f8fdb03479ad61223246.tar.bz2 |
[mlir][arith] Add narrowing patterns for subi, divsi, and divui
Each of these ops is compatible with only one extension kind and
produces an extra result bit.
I checked these transformation in Alive2:
1. subi + extsi: https://alive2.llvm.org/ce/z/ipmZZA
2. divsi + extsi: https://alive2.llvm.org/ce/z/fAcqUv
3. divui + extui: https://alive2.llvm.org/ce/z/QZJpFp
Reviewed By: antiagainst
Differential Revision: https://reviews.llvm.org/D149531
Diffstat (limited to 'llvm')
0 files changed, 0 insertions, 0 deletions