[PATCH] D81682: [PGO] Extend the value profile buckets for mem op sizes.
Hiroshi Yamauchi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 15:50:09 PDT 2020
yamauchi added a comment.
> This is with clang trying to PGO itself. Build with `-DLLVM_BUILD_INSTRUMENTED=IR -DLLVM_BUILD_RUNTIME=No` and use the result to build the LLVM tree again.
>
> https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=318445929&repo=ash&lineNumber=17322
It seems that I can't reproduce it. Here's my script. Can you reproduce with it or modify it so it reproduces?
# cd into the root directory "llvm-project"
LLVMROOT=`pwd`
rm -rf $LLVMROOT/clang-bootstrap
mkdir $LLVMROOT/clang-bootstrap
STAGE1=$LLVMROOT/clang-bootstrap/stage1
STAGE2_PROF_GEN=$LLVMROOT/clang-bootstrap/stage2-prof-gen
STAGE2_TRAIN=$LLVMROOT/clang-bootstrap/stage2-train
CMAKE="cmake -G Ninja $LLVMROOT/llvm -DLLVM_ENABLE_PROJECTS=clang;compiler-rt -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Release -DLLVM_PARALLEL_LINK_JOBS=6"
mkdir $STAGE1
cd $STAGE1
$CMAKE -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_INSTALL_PREFIX=$STAGE1/install
ninja install -v
mkdir -p $STAGE2_PROF_GEN
cd $STAGE2_PROF_GEN
$CMAKE -DCMAKE_C_COMPILER=$STAGE1/install/bin/clang \
-DCMAKE_CXX_COMPILER=$STAGE1/install/bin/clang++ \
-DLLVM_BUILD_INSTRUMENTED=IR \
-DLLVM_BUILD_RUNTIME=No \
-DCMAKE_INSTALL_PREFIX=$STAGE2_PROF_GEN/install
ninja install -v
mkdir $STAGE2_TRAIN
cd $STAGE2_TRAIN
$CMAKE -DCMAKE_C_COMPILER=$STAGE2_PROF_GEN/install/bin/clang \
-DCMAKE_CXX_COMPILER=$STAGE2_PROF_GEN/install/bin/clang++ \
-DCMAKE_INSTALL_PREFIX=$STAGE2_TRAIN/install
ninja -v
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81682/new/
https://reviews.llvm.org/D81682
More information about the llvm-commits
mailing list