[all-commits] [llvm/llvm-project] a4b44c: [InstCombine] Canonicalize `icmp ult (add X, C2), ...
Antonio Frighetto via All-commits
all-commits at lists.llvm.org
Mon Jun 17 10:39:23 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a4b44c003e35bb6ed78af6300e576554d41f0368
https://github.com/llvm/llvm-project/commit/a4b44c003e35bb6ed78af6300e576554d41f0368
Author: Antonio Frighetto <me at antoniofrighetto.com>
Date: 2024-06-17 (Mon, 17 Jun 2024)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/icmp-add.ll
Log Message:
-----------
[InstCombine] Canonicalize `icmp ult (add X, C2), C` expressions
`icmp ult (add X, C2), C` can be folded to `icmp ne (and X, C), 2C`,
subject to `C == -C2` and C2 being a power of 2.
Proofs: https://alive2.llvm.org/ce/z/P-VVmQ.
Fixes: https://github.com/llvm/llvm-project/issues/75613.
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