[InstCombine, InstSimplify] Move xforms from Combine to Simplify
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 6 Jun 2015 22:40:21 +0000 (22:40 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 6 Jun 2015 22:40:21 +0000 (22:40 +0000)
commit3f0fb98d010dc111b3bccefaf8b37a18410c51bd
treea43debef511b159e708754fa29d5d24c175ab597
parenta911af0e8cbe751c816211acceb7adf0f6180fa4
[InstCombine, InstSimplify] Move xforms from Combine to Simplify

There were several SelectInst combines that always returned an existing
instruction instead of modifying an old one or creating a new one.
These are prime candidates for moving to InstSimplify.

llvm-svn: 239229
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp