Generalize the code that handles (A&B)|(A&C) to work where B/C are not constants.
authorChris Lattner <sabre@nondot.org>
Sun, 8 Apr 2007 07:47:01 +0000 (07:47 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 8 Apr 2007 07:47:01 +0000 (07:47 +0000)
commitc5e7ea49eb212947ee0e6e4557a8d7d281985dbf
tree68fb1a6b973bbdc8714184f663b564ea22cdbceb
parent251396a6f2a81d7e9096e4623b3d207f42a87987
Generalize the code that handles (A&B)|(A&C) to work where B/C are not constants.
Add a new xform to simplify (A&B)|(~A&C).  THis implements InstCombine/or2.ll:test1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35760 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp