]> granicus.if.org Git - llvm/commit
Add optimizations:
authorChris Lattner <sabre@nondot.org>
Mon, 10 Mar 2003 23:52:54 +0000 (23:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Mar 2003 23:52:54 +0000 (23:52 +0000)
commit8408add00a690046ddbc3e5d9d19c6b640444f65
treefc2e2c8c36d903e3570cae087dd5ad29e8293fcf
parenta4f445b28c3c55949e6be72514f4225c95dc87a9
Add optimizations:
 - (A & C1)+(B & C2) -> (A & C1)|(B & C2) iff C1&C2 == 0
 - (A & C1)^(B & C2) -> (A & C1)|(B & C2) iff C1&C2 == 0

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5741 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/add.ll
test/Transforms/InstCombine/and.ll
test/Transforms/InstCombine/or.ll