Refactor the constant folding code into it's own function. And call it from both
authorBill Wendling <isanbard@gmail.com>
Wed, 24 Sep 2008 07:11:26 +0000 (07:11 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 24 Sep 2008 07:11:26 +0000 (07:11 +0000)
commitdf0c7bc52d206782872b54a38a3374f0317ce6ff
tree342d3e0977e11d095441b1a2f771e827b70f1442
parenta7e6146688f4b1f0f0651af4df4994e78d438377
Refactor the constant folding code into it's own function. And call it from both
the SelectionDAG and DAGCombiner code. The only functionality change is that now
the DAG combiner is performing the constant folding for these operations instead
of being a no-op.

This is *not* in response to a bug, so there isn't a testcase.

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