[all-commits] [llvm/llvm-project] c3175c: [InstCombine] Fold `(X & C1) - (X & C2) --> X & (C...
fengfeng via All-commits
all-commits at lists.llvm.org
Tue Dec 10 02:06:56 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3175c50a3cefef05046a2f78afb55028b30eb5a
https://github.com/llvm/llvm-project/commit/c3175c50a3cefef05046a2f78afb55028b30eb5a
Author: fengfeng <153487255+fengfeng09 at users.noreply.github.com>
Date: 2024-12-10 (Tue, 10 Dec 2024)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
A llvm/test/Transforms/InstCombine/and-sub-combine.ll
Log Message:
-----------
[InstCombine] Fold `(X & C1) - (X & C2) --> X & (C1 ^ C2)` if `(C1 & C2) == C2` (#119316)
if (C1 & C2) == C2 then (X & C1) - (X & C2) --> X & (C1 ^ C2)
Alive2: https://alive2.llvm.org/ce/z/JvQU8w
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