OSDN Git Service

[DAG] Move DAGCombiner::GetDemandedBits to SelectionDAG
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 25 Jul 2017 16:36:44 +0000 (16:36 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 25 Jul 2017 16:36:44 +0000 (16:36 +0000)
commitae9f3ffd871a87d0f3c19a85f70288c23e67ba63
treeca36e1d6ec74a02bc43314f11e362005809c2434
parent7d8deb856aaab780f73b90cddae7cce43e76bbc3
[DAG] Move DAGCombiner::GetDemandedBits to SelectionDAG

This patch moves the DAGCombiner::GetDemandedBits function to SelectionDAG::GetDemandedBits as a first step towards making it easier for targets to get to the source of any demanded bits without the limitations of SimplifyDemandedBits.

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

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