reapply the patch reverted in r116033:
authorChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2010 03:54:52 +0000 (03:54 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2010 03:54:52 +0000 (03:54 +0000)
commit99ae6659daaebeb32df91653fad09748fda8bcb2
tree45170feaad220191b02a7ad9652f0d392415416e
parent0de25f7b386c00e74a8ab11950e5b966fb67aa88
reapply the patch reverted in r116033:
"Reimplement (part of) the or -> add optimization.  Matching 'or' into 'add'"

With a critical fix: the add pseudos clobber EFLAGS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116039 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrCompiler.td
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.td
lib/Target/X86/X86MCInstLower.cpp