1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[Hexagon] Fold object construction into map::insert

llvm-svn: 261096
This commit is contained in:
Krzysztof Parzyszek 2016-02-17 15:02:07 +00:00
parent 8d76fd1d94
commit cacffaaf70

View File

@ -1764,8 +1764,8 @@ void HexagonFrameLowering::optimizeSpillSlots(MachineFunction &MF,
std::map<int,IndexType> LastStore, LastLoad;
// Emplace appears not to be supported in gcc 4.7.2-4.
//auto P = BlockIndexes.emplace(&B, HexagonBlockRanges::InstrIndexMap(B));
auto TmpP = std::make_pair(&B, HexagonBlockRanges::InstrIndexMap(B));
auto P = BlockIndexes.insert(TmpP);
auto P = BlockIndexes.insert(
std::make_pair(&B, HexagonBlockRanges::InstrIndexMap(B)));
auto &IndexMap = P.first->second;
DEBUG(dbgs() << "Index map for BB#" << B.getNumber() << "\n"
<< IndexMap << '\n');