forked from OSchip/llvm-project
[SchedModel] Record::getName() returns StringRef - avoid std::string creation. NFCI.
llvm-svn: 328437
This commit is contained in:
parent
34d512ec1e
commit
494d07516e
|
@ -387,9 +387,9 @@ void CodeGenSchedModels::collectSchedRW() {
|
||||||
RecVec RWDefs = Records.getAllDerivedDefinitions("SchedReadWrite");
|
RecVec RWDefs = Records.getAllDerivedDefinitions("SchedReadWrite");
|
||||||
for (Record *RWDef : RWDefs) {
|
for (Record *RWDef : RWDefs) {
|
||||||
if (!getSchedRWIdx(RWDef, RWDef->isSubClassOf("SchedRead"))) {
|
if (!getSchedRWIdx(RWDef, RWDef->isSubClassOf("SchedRead"))) {
|
||||||
const std::string &Name = RWDef->getName();
|
StringRef Name = RWDef->getName();
|
||||||
if (Name != "NoWrite" && Name != "ReadDefault")
|
if (Name != "NoWrite" && Name != "ReadDefault")
|
||||||
dbgs() << "Unused SchedReadWrite " << RWDef->getName() << '\n';
|
dbgs() << "Unused SchedReadWrite " << Name << '\n';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue