Move optimization of some cases of (A & C1)|(B & C2) from instcombine to instsimplify...
authorNick Lewycky <nicholas@mxc.ca>
Thu, 19 Jun 2014 03:51:46 +0000 (03:51 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 19 Jun 2014 03:51:46 +0000 (03:51 +0000)
commit8561a49c272006d70ae10b86ccd9744be2cb84ba
treef54ca84919583ce62402157855e0f8dc3afc4312
parentc961030ac25428c14081a12ba9b90284181ecc9b
Move optimization of some cases of (A & C1)|(B & C2) from instcombine to instsimplify. Patch by Rahul Jain, plus some last minute changes by me -- you can blame me for any bugs.

llvm-svn: 211252
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstSimplify/apint-or.ll [new file with mode: 0644]