diff options
| author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2024-02-26 03:26:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 03:26:55 +0800 |
| commit | 641d160ad236fb7a472a9eedbda2d62541e7dd0c (patch) | |
| tree | 4f0bff8a4bec62983f36f1b8c041abff631374a6 /mlir/lib/Bytecode/Reader/BytecodeReader.cpp | |
| parent | 6f9b0a7095cbb7781e1f387f99d5725c950ce79b (diff) | |
| download | llvm-641d160ad236fb7a472a9eedbda2d62541e7dd0c.zip llvm-641d160ad236fb7a472a9eedbda2d62541e7dd0c.tar.gz llvm-641d160ad236fb7a472a9eedbda2d62541e7dd0c.tar.bz2 | |
[InstCombine] Fold umax(smax)/smin(umin) with non-negative constants (#82929)
This patch extends `reassociateMinMaxWithConstants` to fold the
following patterns:
```
umax (smax X, nneg C0), nneg C1 --> smax X, (umax C0, C1)
smin (umin X, nneg C0), nneg C1 --> umin X, (smin/umin C0, C1)
```
Alive2: https://alive2.llvm.org/ce/z/wfEj-e
Address the comment
https://github.com/llvm/llvm-project/pull/82472#pullrequestreview-1896922897.
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
