* find src/jit -type f -exec sed -i -e 's/.*declspec.*genAlignLoops.*//g' {} \;
* Go back to doAlignLoops
* Rename to ShouldAlignLoops
Commit migrated from https://github.com/dotnet/coreclr/commit/
8df2e7b38211e0a2b6bad706a473f181ec1cb3fb
//-------------------------------------------------------------------------
// The following property indicates whether to align loops.
// (Used to avoid effects of loop alignment when diagnosing perf issues.)
- __declspec(property(get = doAlignLoops, put = setAlignLoops)) bool genAlignLoops;
- bool doAlignLoops()
+
+ bool ShouldAlignLoops()
{
return m_genAlignLoops;
}
- void setAlignLoops(bool value)
+ void SetAlignLoops(bool value)
{
m_genAlignLoops = value;
}
genUpdateCurrentFunclet(block);
#ifdef _TARGET_XARCH_
- if (genAlignLoops && block->bbFlags & BBF_LOOP_HEAD)
+ if (ShouldAlignLoops() && block->bbFlags & BBF_LOOP_HEAD)
{
GetEmitter()->emitLoopAlign();
}
if (opts.jitFlags->IsSet(JitFlags::JIT_FLAG_RELOC))
{
- codeGen->genAlignLoops = false; // loop alignment not supported for prejitted code
+ codeGen->SetAlignLoops(false); // loop alignment not supported for prejitted code
// The zapper doesn't set JitFlags::JIT_FLAG_ALIGN_LOOPS, and there is
// no reason for it to set it as the JIT doesn't currently support loop alignment
}
else
{
- codeGen->genAlignLoops = opts.jitFlags->IsSet(JitFlags::JIT_FLAG_ALIGN_LOOPS);
+ codeGen->SetAlignLoops(opts.jitFlags->IsSet(JitFlags::JIT_FLAG_ALIGN_LOOPS));
}
}