]> granicus.if.org Git - llvm/commit
[DAGCombiner] add helper function for visitORLike; NFCI
authorSanjay Patel <spatel@rotateright.com>
Thu, 30 Mar 2017 17:32:42 +0000 (17:32 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 30 Mar 2017 17:32:42 +0000 (17:32 +0000)
commitaf5759db4770046668402752dc20d29bf6795749
tree7588e6431c2de56782fec28fecc5affc938fa95c
parent3e6ef772728636f8cacb4f9a5ebc8e18fd8c17c9
[DAGCombiner] add helper function for visitORLike; NFCI

This combines all of the equivalent clean-ups for foldAndOfSetCCs:
https://reviews.llvm.org/rL298938
https://reviews.llvm.org/rL298940
https://reviews.llvm.org/rL298944
https://reviews.llvm.org/rL298949
https://reviews.llvm.org/rL298950
https://reviews.llvm.org/rL299002
https://reviews.llvm.org/rL299013

The sins of code duplication are on full display here:
each function is missing a fold that wasn't copied over from its logical sibling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299091 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp