aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGNodes.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-02 05:29:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-02 05:29:38 +0000
commit33d5595d667ba4a880bd7fe785724e8197bef70c (patch)
treed40ca1076c4bf7fcfeedd9b7f656c70b582b5c0e /include/llvm/CodeGen/SelectionDAGNodes.h
parent0a2a515c5bb075294dd261b0ad236b6d19c66f8c (diff)
Do not emit copies for physical register output if it's not used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index ce7dda4028..3502e89501 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -858,6 +858,10 @@ public:
/// operation.
bool hasNUsesOfValue(unsigned NUses, unsigned Value) const;
+ /// hasAnyUseOfValue - Return true if there are any use of the indicated
+ /// value. This method ignores uses of other values defined by this operation.
+ bool hasAnyUseOfValue(unsigned Value) const;
+
/// isOnlyUse - Return true if this node is the only use of N.
///
bool isOnlyUse(SDNode *N) const;