diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-01 23:40:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-01 23:40:33 +0000 |
commit | f0b073cc06bd6dbfdc2ce7288f084ab40590da73 (patch) | |
tree | f7a3c3944e7f4443201abc4fa99ab99703189101 /include | |
parent | 9bd4d48587f1c5aba39b35849a80580b02a33c3a (diff) | |
download | external_llvm-f0b073cc06bd6dbfdc2ce7288f084ab40590da73.zip external_llvm-f0b073cc06bd6dbfdc2ce7288f084ab40590da73.tar.gz external_llvm-f0b073cc06bd6dbfdc2ce7288f084ab40590da73.tar.bz2 |
remove some functions that were only used by the
old isel generated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/DAGISelHeader.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/include/llvm/CodeGen/DAGISelHeader.h b/include/llvm/CodeGen/DAGISelHeader.h index 5bb53b0..4a3d70f 100644 --- a/include/llvm/CodeGen/DAGISelHeader.h +++ b/include/llvm/CodeGen/DAGISelHeader.h @@ -26,29 +26,6 @@ /// node list. SelectionDAG::allnodes_iterator ISelPosition; -/// ChainNotReachable - Returns true if Chain does not reach Op. -static bool ChainNotReachable(SDNode *Chain, SDNode *Op) { - if (Chain->getOpcode() == ISD::EntryToken) - return true; - if (Chain->getOpcode() == ISD::TokenFactor) - return false; - if (Chain->getNumOperands() > 0) { - SDValue C0 = Chain->getOperand(0); - if (C0.getValueType() == MVT::Other) - return C0.getNode() != Op && ChainNotReachable(C0.getNode(), Op); - } - return true; -} - -/// IsChainCompatible - Returns true if Chain is Op or Chain does not reach Op. -/// This is used to ensure that there are no nodes trapped between Chain, which -/// is the first chain node discovered in a pattern and Op, a later node, that -/// will not be selected into the pattern. -static bool IsChainCompatible(SDNode *Chain, SDNode *Op) { - return Chain == Op || ChainNotReachable(Chain, Op); -} - - /// ISelUpdater - helper class to handle updates of the /// instruciton selection graph. class VISIBILITY_HIDDEN ISelUpdater : public SelectionDAG::DAGUpdateListener { @@ -117,6 +94,7 @@ void SelectRoot(SelectionDAG &DAG) { continue; SDNode *ResNode = Select(Node); + // If node should not be replaced, continue with the next one. if (ResNode == Node) continue; |