[InstCombine] Fold Select with binary op - non-commutative opcodes
authorDavid Bolvansky <david.bolvansky@gmail.com>
Sun, 12 Aug 2018 17:30:07 +0000 (17:30 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Sun, 12 Aug 2018 17:30:07 +0000 (17:30 +0000)
commit01d98cc03f777054e398510d047e06a650e9d466
tree6f6f7bec0881ff5a348a330c6bd5b49e71195742
parentdc185ee27551c0ed5a66ca999bab6794c39b30f4
[InstCombine] Fold Select with binary op - non-commutative opcodes

Summary:
Basic version was merged - https://reviews.llvm.org/D49954

This adds support for FP & non-commutative opcodes

Precommited tests: https://reviews.llvm.org/rL338727

Reviewers: spatel, lebedev.ri

Reviewed By: spatel

Subscribers: jfb

Differential Revision: https://reviews.llvm.org/D50190

llvm-svn: 339520
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select-binop-icmp.ll