google / ml-compiler-opt

Infrastructure for Machine Learning Guided Optimization (MLGO) in LLVM.
Apache License 2.0
629 stars 93 forks source link

Can I merge all the bc files into a total bc file for training? #333

Closed 18liumin closed 1 month ago

18liumin commented 10 months ago

I know that your training data set uses the bc file corresponding to each .c in Fuchsia. Can I merge all the bc files into a total bc file for training? Will this affect the Monte Carlo methods and thus the final effect?

4.1.2 Policy Gradient Algorithm Here Eis an expectation over the policy 𝜋𝜃 being applied to an inlining pass. In practice, this expectation is approximated with Monte Carlo methods — with 𝑛 trajectories collected from compiling with policy