[DAG] make isConstOrConstSplat and isConstOrConstSplatFP more accessible; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 17 Oct 2016 20:26:46 +0000 (20:26 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 17 Oct 2016 20:26:46 +0000 (20:26 +0000)
commita7cab580558d0b6dab3f94f6da7bc040235c2da5
tree7271bf3a5d659bfc280fa36e71a68da4a827ec10
parent3e23c04f0a4d4bd91efb85db41b3324a0ff98cc7
[DAG] make isConstOrConstSplat and isConstOrConstSplatFP more accessible; NFC

As noted in:
https://reviews.llvm.org/D25685

This is the next-to-smallest step needed to enable the ComputeNumSignBits fix in that patch.
In a minor attempt to keep some structure, we're pulling the FP helper over along with its
integer sibling, but clearly we can and should do more refactoring of the similar helper
functions in DAGCombiner and SelectionDAG to simplify and not duplicate functionality.

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