Skip to content

Commit 989b55e

Browse files
committed
clang-format.
1 parent a2347af commit 989b55e

File tree

2 files changed

+34
-28
lines changed

2 files changed

+34
-28
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,8 +1443,7 @@ getBBAddrMapFeature(const MachineFunction &MF, int NumMBBSectionRanges,
14431443
MF.hasBBSections() && NumMBBSectionRanges > 1,
14441444
// Use static_cast to avoid breakage of tests on windows.
14451445
static_cast<bool>(BBAddrMapSkipEmitBBEntries), HasCalls,
1446-
static_cast<bool>(EmitBBHash),
1447-
false};
1446+
static_cast<bool>(EmitBBHash), false};
14481447
}
14491448

14501449
void AsmPrinter::emitBBAddrMapSection(const MachineFunction &MF) {

llvm/unittests/Object/ELFObjectFileTest.cpp

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,31 +1291,36 @@ TEST(ELFObjectFileTest, ReadPGOAnalysisMap) {
12911291
{{0, 0x0, 0x3, {false, true, true, false, false}, {}, 0},
12921292
{1, 0x3, 0x3, {false, false, true, false, false}, {}, 0},
12931293
{2, 0x6, 0x3, {false, false, false, false, false}, {}, 0}}}}};
1294-
PGOAnalysisMap P3 = {{},
1295-
{{{}, 0,
1296-
{{1, BranchProbability::getRaw(0x1111'1111), 0},
1297-
{2, BranchProbability::getRaw(0xeeee'eeee), 0}}},
1298-
{{}, 0, {{2, BranchProbability::getRaw(0xffff'ffff), 0}}},
1299-
{{}, 0, {}}},
1300-
{false, false, true, false, false, false, false, false}};
1294+
PGOAnalysisMap P3 = {
1295+
{},
1296+
{{{},
1297+
0,
1298+
{{1, BranchProbability::getRaw(0x1111'1111), 0},
1299+
{2, BranchProbability::getRaw(0xeeee'eeee), 0}}},
1300+
{{}, 0, {{2, BranchProbability::getRaw(0xffff'ffff), 0}}},
1301+
{{}, 0, {}}},
1302+
{false, false, true, false, false, false, false, false}};
13011303
BBAddrMap E4 = {
13021304
{{0x44444,
13031305
{{0, 0x0, 0x4, {false, false, false, true, true}, {}, 0},
13041306
{1, 0x4, 0x4, {false, false, false, false, false}, {}, 0},
13051307
{2, 0x8, 0x4, {false, false, false, false, false}, {}, 0},
13061308
{3, 0xc, 0x4, {false, false, false, false, false}, {}, 0}}}}};
1307-
PGOAnalysisMap P4 = {
1308-
1000,
1309-
{{BlockFrequency(1000), 50,
1310-
{{1, BranchProbability::getRaw(0x2222'2222), 0},
1311-
{2, BranchProbability::getRaw(0x3333'3333), 0},
1312-
{3, BranchProbability::getRaw(0xaaaa'aaaa), 0}}},
1313-
{BlockFrequency(133), 0,
1314-
{{2, BranchProbability::getRaw(0x1111'1111), 0},
1315-
{3, BranchProbability::getRaw(0xeeee'eeee), 0}}},
1316-
{BlockFrequency(18), 0, {{3, BranchProbability::getRaw(0xffff'ffff), 0}}},
1317-
{BlockFrequency(1000), 0, {}}},
1318-
{true, true, true, false, false, false, false, true}};
1309+
PGOAnalysisMap P4 = {1000,
1310+
{{BlockFrequency(1000),
1311+
50,
1312+
{{1, BranchProbability::getRaw(0x2222'2222), 0},
1313+
{2, BranchProbability::getRaw(0x3333'3333), 0},
1314+
{3, BranchProbability::getRaw(0xaaaa'aaaa), 0}}},
1315+
{BlockFrequency(133),
1316+
0,
1317+
{{2, BranchProbability::getRaw(0x1111'1111), 0},
1318+
{3, BranchProbability::getRaw(0xeeee'eeee), 0}}},
1319+
{BlockFrequency(18),
1320+
0,
1321+
{{3, BranchProbability::getRaw(0xffff'ffff), 0}}},
1322+
{BlockFrequency(1000), 0, {}}},
1323+
{true, true, true, false, false, false, false, true}};
13191324
BBAddrMap E5 = {
13201325
{{0x55555, {{2, 0x0, 0x2, {false, false, true, false, false}, {}, 0}}}}};
13211326
PGOAnalysisMap P5 = {
@@ -1326,13 +1331,15 @@ TEST(ELFObjectFileTest, ReadPGOAnalysisMap) {
13261331
{1, 0x6, 0x6, {false, false, true, false, false}, {}, 0}}},
13271332
{0x666661,
13281333
{{2, 0x0, 0x6, {false, false, false, false, false}, {}, 0}}}}};
1329-
PGOAnalysisMap P6 = {{},
1330-
{{{}, 0,
1331-
{{1, BranchProbability::getRaw(0x2222'2222), 7},
1332-
{2, BranchProbability::getRaw(0xcccc'cccc), 0}}},
1333-
{{}, 0, {{2, BranchProbability::getRaw(0x8888'8888), 0}}},
1334-
{{}, 0, {}}},
1335-
{false, false, true, true, false, false, false, true}};
1334+
PGOAnalysisMap P6 = {
1335+
{},
1336+
{{{},
1337+
0,
1338+
{{1, BranchProbability::getRaw(0x2222'2222), 7},
1339+
{2, BranchProbability::getRaw(0xcccc'cccc), 0}}},
1340+
{{}, 0, {{2, BranchProbability::getRaw(0x8888'8888), 0}}},
1341+
{{}, 0, {}}},
1342+
{false, false, true, true, false, false, false, true}};
13361343

13371344
std::vector<BBAddrMap> Section0BBAddrMaps = {E4, E5, E6};
13381345
std::vector<BBAddrMap> Section1BBAddrMaps = {E3};

0 commit comments

Comments
 (0)