diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-25 16:29:12 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-25 16:29:12 +0000 |
commit | 399461095b033438d1f5863cd0d6f82a616f74dc (patch) | |
tree | 14d303492e2cced7ae294690e4b16295255902e3 /include | |
parent | 74692c0d65d92865674ff8e0491a21b98950284a (diff) | |
download | external_llvm-399461095b033438d1f5863cd0d6f82a616f74dc.zip external_llvm-399461095b033438d1f5863cd0d6f82a616f74dc.tar.gz external_llvm-399461095b033438d1f5863cd0d6f82a616f74dc.tar.bz2 |
Eliminate the loop that searches through each of the operands
of each use in the SelectionDAG ReplaceAllUses* functions. Thanks
to Chris for spotting this opportunity.
Also, factor out code from all 5 of the ReplaceAllUses* functions
into AddNonLeafNodeToCSEMaps, which is now renamed
AddModifiedNodeToCSEMaps to more accurately reflect its purpose.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 8f41b5c..209fedb 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -800,7 +800,7 @@ public: private: bool RemoveNodeFromCSEMaps(SDNode *N); - SDNode *AddNonLeafNodeToCSEMaps(SDNode *N); + void AddModifiedNodeToCSEMaps(SDNode *N, DAGUpdateListener *UpdateListener); SDNode *FindModifiedNodeSlot(SDNode *N, SDValue Op, void *&InsertPos); SDNode *FindModifiedNodeSlot(SDNode *N, SDValue Op1, SDValue Op2, void *&InsertPos); |