[PATCH] D115195: [mlgo][regalloc] Add score calculation for training
Yundi Qian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 6 16:02:44 PST 2021
yundiqian added inline comments.
================
Comment at: llvm/lib/CodeGen/RegAllocScore.cpp:31
+using namespace llvm;
+cl::opt<double> CopyWeight("regalloc-copy-weight", cl::init(0.0), cl::Hidden);
+cl::opt<double> LoadWeight("regalloc-load-weight", cl::init(4.0), cl::Hidden);
----------------
0.2
================
Comment at: llvm/lib/CodeGen/RegAllocScore.cpp:34
+cl::opt<double> StoreWeight("regalloc-store-weight", cl::init(1.0), cl::Hidden);
+cl::opt<double> CheapRematWeight("regalloc-cheap-remat-weight", cl::init(0.0),
+ cl::Hidden);
----------------
0.2
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115195/new/
https://reviews.llvm.org/D115195
More information about the llvm-commits
mailing list