Commit b6abec57 by Nicolas Capens Committed by Nicolas Capens

Use unorderer_map<> for def/use information.

Bug swiftshader:69 Change-Id: Ib4611e2326741688969137f0610980f899b8ee48 Reviewed-on: https://swiftshader-review.googlesource.com/11148Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 01a9796a
......@@ -17,7 +17,7 @@
#include "src/IceCfg.h"
#include "src/IceCfgNode.h"
#include <map>
#include <unordered_map>
#include <vector>
namespace
......@@ -61,9 +61,9 @@ namespace
std::vector<Ice::Inst*> stores;
};
std::map<Ice::Operand*, Uses> uses;
std::map<Ice::Inst*, Ice::CfgNode*> node;
std::map<Ice::Variable*, Ice::Inst*> definition;
std::unordered_map<Ice::Operand*, Uses> uses;
std::unordered_map<Ice::Inst*, Ice::CfgNode*> node;
std::unordered_map<Ice::Variable*, Ice::Inst*> definition;
};
void Optimizer::run(Ice::Cfg *function)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment