[all-commits] [llvm/llvm-project] e47108: [InstCombine] Use disjoint flag in add of or fold
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Dec 5 06:07:02 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e4710872e98a931c6d5e89bc965b778746ead2c0
https://github.com/llvm/llvm-project/commit/e4710872e98a931c6d5e89bc965b778746ead2c0
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-12-05 (Tue, 05 Dec 2023)
Changed paths:
M llvm/include/llvm/IR/PatternMatch.h
M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
M llvm/test/Transforms/InstCombine/add.ll
Log Message:
-----------
[InstCombine] Use disjoint flag in add of or fold
Use disjoint instead of haveNoCommonBitsSet(), which is slightly
stronger in case the information used to infer disjoint has been
lost.
Introduce the m_DisjointOr() matcher to make handling cases like
this cleaner.
More information about the All-commits
mailing list