[SelectionDAG] add simplifySelect() to reduce code duplication; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 19 Nov 2018 14:35:22 +0000 (14:35 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 19 Nov 2018 14:35:22 +0000 (14:35 +0000)
commitc036d844be3aaf95a1479ccfd07607777ec86522
tree3764955122dd6d9f934fc13b5a2b1441b9d1996a
parentbbab546a7195350ca58a189247d6baf6ab5fb81a
[SelectionDAG] add simplifySelect() to reduce code duplication; NFC

This should be extended to handle FP and vectors in follow-up patches.

llvm-svn: 347210
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp