projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2713df
)
[CodeGen] Use llvm::erase_value (NFC)
author
Kazu Hirata
<kazu@google.com>
Sat, 11 Jun 2022 05:59:48 +0000
(22:59 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sat, 11 Jun 2022 05:59:48 +0000
(22:59 -0700)
llvm/lib/CodeGen/MachinePipeliner.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachinePipeliner.cpp
b/llvm/lib/CodeGen/MachinePipeliner.cpp
index a80cb79cae19fe8f7c8b5a908491c75b79213174..ecb687058a8efbc30148652ada9146d7f95259df 100644
(file)
--- a/
llvm/lib/CodeGen/MachinePipeliner.cpp
+++ b/
llvm/lib/CodeGen/MachinePipeliner.cpp
@@
-2757,7
+2757,7
@@
bool SMSchedule::normalizeNonPipelinedInstructions(
if (OldCycle != NewCycle) {
InstrToCycle[&SU] = NewCycle;
auto &OldS = getInstructions(OldCycle);
-
OldS.erase(std::remove(OldS.begin(), OldS.end(), &SU), OldS.end()
);
+
llvm::erase_value(OldS, &SU
);
getInstructions(NewCycle).emplace_back(&SU);
LLVM_DEBUG(dbgs() << "SU(" << SU.NodeNum
<< ") is not pipelined; moving from cycle " << OldCycle