mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[PGO] Introduce alignment macro for instr-prof control data(NFC)
llvm-svn: 253893
This commit is contained in:
parent
2d664e8ff0
commit
0b39dbc2f8
@ -183,7 +183,6 @@ COVMAP_FUNC_RECORD(const uint64_t, llvm::Type::getInt64Ty(Ctx), FuncHash, \
|
||||
#define INSTR_PROF_SIMPLE_CONCAT(x,y) x ## y
|
||||
#define INSTR_PROF_CONCAT(x,y) INSTR_PROF_SIMPLE_CONCAT(x,y)
|
||||
|
||||
|
||||
/* Magic number to detect file format and endianness.
|
||||
* Use 255 at one end, since no UTF-8 file can use that character. Avoid 0,
|
||||
* so that utilities, like strings, don't grab it as a string. 129 is also
|
||||
@ -230,6 +229,9 @@ COVMAP_FUNC_RECORD(const uint64_t, llvm::Type::getInt64Ty(Ctx), FuncHash, \
|
||||
#define INSTR_PROF_VALUE_PROF_FUNC_STR \
|
||||
INSTR_PROF_QUOTE(INSTR_PROF_VALUE_PROF_FUNC)
|
||||
|
||||
/* InstrProfile per-function control data alignment. */
|
||||
#define INSTR_PROF_DATA_ALIGNMENT 8
|
||||
|
||||
/* The data structure that represents a tracked value by the
|
||||
* value profiler.
|
||||
*/
|
||||
|
@ -344,7 +344,7 @@ InstrProfiling::getOrCreateRegionCounters(InstrProfIncrementInst *Inc) {
|
||||
getVarName(Inc, getInstrProfDataVarPrefix()));
|
||||
Data->setVisibility(NamePtr->getVisibility());
|
||||
Data->setSection(getDataSection());
|
||||
Data->setAlignment(8);
|
||||
Data->setAlignment(INSTR_PROF_DATA_ALIGNMENT);
|
||||
Data->setComdat(ProfileVarsComdat);
|
||||
|
||||
PD.RegionCounters = CounterPtr;
|
||||
|
Loading…
Reference in New Issue
Block a user