<div><div style="line-height:1.6;font-size:14px"><div class="" dir="auto"><span>Hi All,</span></div><div class="" dir="auto"><br></div><div class="" dir="auto"><span>I am using </span><span class=" b "><b>CSSPGO with Pseudo-Instrumentation</b></span><span>. But I found that the performance benefits </span><span class="grammar-check-ignore">shown</span><span> in </span><span class="outer-u-container "><span class="hyperlink-href:https://groups.google.com/g/llvm-dev/c/1p1rdYbL93s/m/iJjcmUS7AwAJ hyperlink-linkId:vbUyOx3K55"><a href="https://groups.google.com/g/llvm-dev/c/1p1rdYbL93s/m/iJjcmUS7AwAJ" rel="noopener" target="_blank" style="color:rgb(51,112,255);text-decoration:none">[RFC: CSSPGO with Pseudo-Instrumentation]</a></span></span><span> </span><span class=" b  fontcolor " style="color:#000000"><b>can't be reproduced on Spec CPU 2017</b></span><span> based on </span><span class=" b "><b>llvm-12</b></span><span>. In RFC, results show that CSSPGO with Pseudo-Instrumentation achieves better performance over AutoFDO.</span></div><div class="" dir="auto"><br></div><div class="" dir="auto"><span>Here, I have two question:</span></div><ol start="1" style="margin:0px;padding:0px;list-style-position:inside"><li start="1" class=" " style="padding-left:0px;line-height:1.6;vertical-align:-4px;display:list-item;list-style-type:decimal"><span style="display:none"></span><span class="pocket-ignore pocket-ignore-faketext">​</span><span>Why choose Spec CPU 2006 instead of Spec CPU 2017? Do you have results on </span><span class=" backgroundcolor fontweight  fontsize fontcolor " style="background-color:rgba(0,0,0,0);font-weight:400;font-size:14px;color:#000000">Spec CPU 2017?</span></li><li start="2" class=" " style="padding-left:0px;line-height:1.6;vertical-align:-4px;display:list-item;list-style-type:decimal"><span style="display:none"></span><span class="pocket-ignore pocket-ignore-faketext">​</span><span>Please point out if there </span><span class="grammar-check-ignore">is</span><span> any </span><span class="grammar-check-ignore">error</span><span> with my usage of </span><span class=" backgroundcolor fontweight  fontsize fontcolor " style="background-color:rgba(0,0,0,0);font-weight:400;font-size:14px;color:#000000">CSSPGO, the steps are as follows:</span></li></ol><div class="" dir="auto"><span>Suppose that my program is test.cpp.</span></div><div class="" dir="auto"><span>Step 1: </span><span class=" backgroundcolor " style="background-color:rgb(255,255,255)">clang  -O3  -g3  -fno-omit-frame-pointer  -fdebug-info-for-profiling  -fpseudo-probe-for-profiling  test.cpp  -o  test</span></div><div class="" dir="auto"><span class=" backgroundcolor " style="background-color:rgb(255,255,255)">Step 2: </span><span class=" fontfamily backgroundcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255)">perf  record  -g  --call-graph  fp  -e  br_inst_retired.near_taken:uppp  -c  16009  -b  -o  test.perf.data  ./test</span></div><div class="" dir="auto"><span class=" fontfamily backgroundcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255)">Step 3: perf  script  -F  ip,brstack  -i  test.perf.data  --show-mmap-event  &>  test.perf.script</span></div><div class="" dir="auto"><span class=" fontfamily backgroundcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255)">Step 4: llvm_install/bin/llvm-profgen  --perfscript=test.perf.script  --binary=./test  --output=test.spgo.profraw  --format=text</span></div><div class="" dir="auto"><span class=" fontfamily backgroundcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255)">Step 5: llvm_install/bin/llvm-profdata  merge  --text  --sample  -output=test.spgo.prof  test.profraw ...</span></div><div class="" dir="auto"><span class=" fontfamily backgroundcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255)">Step 6: clang  </span><span class=" fontfamily backgroundcolor fontweight  fontsize fontcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255);font-weight:400;font-size:14px;color:#000000">-O3  -g3  -fpseudo-probe-for-profiling  --fprofile-sample-use=test.spgo.prof  test.cpp  -o  cs_test</span></div><div class="" dir="auto"><span class=" fontfamily backgroundcolor fontweight  fontsize fontcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255);font-weight:400;font-size:14px;color:#000000">Step 7: ./cs_test</span></div><div class="" dir="auto"><br></div><div class="" dir="auto"><span class=" fontfamily backgroundcolor fontweight  fontsize fontcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255);font-weight:400;font-size:14px;color:#000000">Thanks,</span></div><div class="" dir="auto"><span class=" fontfamily backgroundcolor fontweight  fontsize fontcolor " style="font-family:SourceCodeProMac;background-color:rgb(255,255,255);font-weight:400;font-size:14px;color:#000000">Qingqing Xu</span></div><div class="" dir="auto"><br></div><div class="" dir="auto"><span class="outer-u-container "><span class=" hyperlink-href:*llvm-dev@lists.llvm.org"><a href="mailto:*llvm-dev@lists.llvm.org" rel="noopener" target="_blank" style="color:rgb(51,112,255);text-decoration:none">llvm-dev@lists.llvm.org</a></span></span></div></div></div>