[all-commits] [llvm/llvm-project] 2a2c35: [InstCombine] Fold `icmp spred (mul nsw X, Z), (mu...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Tue Oct 1 07:16:26 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2a2c35a9a652ba8562884ec76008979c761df207
https://github.com/llvm/llvm-project/commit/2a2c35a9a652ba8562884ec76008979c761df207
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2024-10-01 (Tue, 01 Oct 2024)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/icmp-mul.ll
Log Message:
-----------
[InstCombine] Fold `icmp spred (mul nsw X, Z), (mul nsw Y, Z)` into `icmp spred X, Y` (#110630)
```
icmp spred (mul nsw X, Z), (mul nsw Y, Z) -> icmp spred X, Y iff Z > 0
icmp spred (mul nsw X, Z), (mul nsw Y, Z) -> icmp spred Y, X iff Z < 0
```
Alive2: https://alive2.llvm.org/ce/z/9fXFfn
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