From 2f64c20284002675b1c5b214a629d95077e651ce Mon Sep 17 00:00:00 2001 From: Geoff Berry Date: Fri, 13 May 2016 17:54:58 +0000 Subject: [EarlyCSE] Change key type of AvailableCalls to Instruction*. NFCI. llvm-svn: 269445 --- llvm/lib/Transforms/Scalar/EarlyCSE.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/Scalar') 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> CallHTType; + typedef ScopedHashTable> + 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 InVal = AvailableCalls.lookup(Inst); + std::pair 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(Inst, CurrentGeneration)); + Inst, std::pair(Inst, CurrentGeneration)); continue; } -- cgit v1.2.3