[all-commits] [llvm/llvm-project] ca8082: [InstCombine] Fold ((X + AddC) & Mask) ^ Mask to (...
hanbeom via All-commits
all-commits at lists.llvm.org
Fri Feb 13 01:17:21 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ca8082f3564a3274094aa9eb4c3997142f8df2f9
https://github.com/llvm/llvm-project/commit/ca8082f3564a3274094aa9eb4c3997142f8df2f9
Author: hanbeom <kese111 at gmail.com>
Date: 2026-02-13 (Fri, 13 Feb 2026)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
M llvm/test/Transforms/InstCombine/and-xor-merge.ll
Log Message:
-----------
[InstCombine] Fold ((X + AddC) & Mask) ^ Mask to (~AddC - X) & Mask (#174278)
This patch optimizes specific pattern.
((X + AddC) & Mask) ^ Mask
-> (~AddC - X) & Mask
Proof: https://alive2.llvm.org/ce/z/XFHfnD
Fixed: https://github.com/llvm/llvm-project/issues/128475
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