diff options
author | Geoff Berry <gberry@codeaurora.org> | 2016-05-13 17:54:58 +0000 |
---|---|---|
committer | Geoff Berry <gberry@codeaurora.org> | 2016-05-13 17:54:58 +0000 |
commit | 2f64c20284002675b1c5b214a629d95077e651ce (patch) | |
tree | 525988af4a07d1140105d343f94646b261d9bea9 /llvm/lib/Transforms | |
parent | bab3fab806bf0eebf5d251f03e04a51803ee2351 (diff) | |
download | bcm5719-llvm-2f64c20284002675b1c5b214a629d95077e651ce.tar.gz bcm5719-llvm-2f64c20284002675b1c5b214a629d95077e651ce.zip |
[EarlyCSE] Change key type of AvailableCalls to Instruction*. NFCI.
llvm-svn: 269445
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/EarlyCSE.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp index 1df99d9ab38..65b683e7ca8 100644 --- a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp +++ b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp @@ -301,7 +301,8 @@ public: /// values. /// /// It uses the same generation count as loads. - typedef ScopedHashTable<CallValue, std::pair<Value *, unsigned>> CallHTType; + typedef ScopedHashTable<CallValue, std::pair<Instruction *, unsigned>> + CallHTType; CallHTType AvailableCalls; /// \brief This is the current generation of the memory value. @@ -654,7 +655,7 @@ bool EarlyCSE::processNode(DomTreeNode *Node) { if (CallValue::canHandle(Inst)) { // If we have an available version of this call, and if it is the right // generation, replace this instruction. - std::pair<Value *, unsigned> InVal = AvailableCalls.lookup(Inst); + std::pair<Instruction *, unsigned> InVal = AvailableCalls.lookup(Inst); if (InVal.first != nullptr && InVal.second == CurrentGeneration) { DEBUG(dbgs() << "EarlyCSE CSE CALL: " << *Inst << " to: " << *InVal.first << '\n'); @@ -668,7 +669,7 @@ bool EarlyCSE::processNode(DomTreeNode *Node) { // Otherwise, remember that we have this instruction. AvailableCalls.insert( - Inst, std::pair<Value *, unsigned>(Inst, CurrentGeneration)); + Inst, std::pair<Instruction *, unsigned>(Inst, CurrentGeneration)); continue; } |