[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)
commit134cb2290204ae2f7a5f78e7901f63f02494b34d
tree244aced43db7a968d6d31d67640240dab6365722
parentce986b6bc0f5119d9fdf928cc8ab80e5e6bd165f
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239229 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
lib/Transforms/InstCombine/InstCombineSelect.cpp