[llvm] [llvm-exegesis] Set stack pointer register after starting perf counter (PR #72489)
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 00:59:56 PST 2023
================
@@ -60,6 +61,15 @@ static bool generateSnippetSetupCode(
BBF.addInstructions(ET.setStackRegisterToAuxMem());
}
for (const RegisterValue &RV : RegisterInitialValues) {
+ if (GenerateMemoryInstructions) {
+ // If we're generating memory instructions, don't load in the value for
+ // the register with the stack pointer as it will be used later to finish
+ // the setup.
+ if (RV.Register == BBF.MF.getSubtarget()
----------------
legrosbuffle wrote:
put this in a local variable ?
https://github.com/llvm/llvm-project/pull/72489
More information about the llvm-commits
mailing list