diff options
Diffstat (limited to 'lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp')
-rw-r--r-- | lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp b/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp index 7742fea..2503764 100644 --- a/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp +++ b/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp @@ -102,7 +102,9 @@ namespace { /// A "color", which is either even or odd. Yes, these aren't really colors /// but the algorithm is conceptually doing two-color graph coloring. enum class Color { Even, Odd }; +#ifndef NDEBUG static const char *ColorNames[2] = { "Even", "Odd" }; +#endif class Chain; @@ -350,7 +352,7 @@ bool AArch64A57FPLoadBalancing::runOnBasicBlock(MachineBasicBlock &MBB) { for (auto I = EC.begin(), E = EC.end(); I != E; ++I) { std::vector<Chain*> Cs(EC.member_begin(I), EC.member_end()); if (Cs.empty()) continue; - V.push_back(Cs); + V.push_back(std::move(Cs)); } // Now we have a set of sets, order them by start address so @@ -375,7 +377,7 @@ bool AArch64A57FPLoadBalancing::runOnBasicBlock(MachineBasicBlock &MBB) { int Parity = 0; for (auto &I : V) - Changed |= colorChainSet(I, MBB, Parity); + Changed |= colorChainSet(std::move(I), MBB, Parity); return Changed; } |