diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-08-02 05:29:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-08-02 05:29:38 +0000 |
commit | 33d5595d667ba4a880bd7fe785724e8197bef70c (patch) | |
tree | d40ca1076c4bf7fcfeedd9b7f656c70b582b5c0e /include/llvm/CodeGen/SelectionDAGNodes.h | |
parent | 0a2a515c5bb075294dd261b0ad236b6d19c66f8c (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.h | 4 |
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; |