Have SimplifyBinOp dispatch Xor, Add and Sub to the corresponding methods
authorDuncan Sands <baldrick@free.fr>
Mon, 20 Dec 2010 14:47:04 +0000 (14:47 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 20 Dec 2010 14:47:04 +0000 (14:47 +0000)
commitee9a2e322af96accc9e55ed6373c0057453714b1
treeeff3cc7ef14c9ed10d46dacd8378c3dc053f5f43
parentc41f4de754a76e0c1bb251cdc10fac587d2f7dbd
Have SimplifyBinOp dispatch Xor, Add and Sub to the corresponding methods
(they had just been forgotten before).  Adding Xor causes "main" in the
existing testcase 2010-11-01-lshr-mask.ll to be hugely more simplified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122245 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstCombine/2010-11-01-lshr-mask.ll