forked from OSchip/llvm-project
[NFC][MLInliner] remove curly braces for a few sinle-line loops
This commit is contained in:
parent
d5c81be3ca
commit
211117b660
|
@ -350,17 +350,16 @@ private:
|
|||
|
||||
TrainingLogger::TrainingLogger(StringRef LogFileName)
|
||||
: LogFileName(LogFileName) {
|
||||
for (size_t I = 0; I < NumberOfFeatures; ++I) {
|
||||
for (size_t I = 0; I < NumberOfFeatures; ++I)
|
||||
Features.push_back(InlineFeatures());
|
||||
}
|
||||
}
|
||||
|
||||
/// Log one inlining event.
|
||||
void TrainingLogger::logInlineEvent(const InlineEvent &Event,
|
||||
const MLModelRunner &ModelRunner) {
|
||||
for (size_t I = 0; I < NumberOfFeatures; ++I) {
|
||||
for (size_t I = 0; I < NumberOfFeatures; ++I)
|
||||
Features[I].push_back(ModelRunner.getFeature(I));
|
||||
}
|
||||
|
||||
Decisions.push_back(Event.AdvisedDecision);
|
||||
Effects.push_back(Event.Effect);
|
||||
Rewards.push_back(Event.Reward);
|
||||
|
|
Loading…
Reference in New Issue