[PATCH] D111688: [MachineSink] Compile time improvement for large testcases which has many kill flags We did a experiment and observed dramatic decrease on compilation time which spent on clearing kill flags.

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 22:20:13 PDT 2021


yubing added a comment.

In D111688#3060446 <https://reviews.llvm.org/D111688#3060446>, @pengfei wrote:

> How do you calculate the kill flags handling time?

I am using std::chrono::high_resolution_clock::now()

  std::chrono::high_resolution_clock::time_point start = std::chrono::high_resolution_clock::now();
  RegsToClearKillFlags.insert(MO.getReg()); // Remember to clear kill flags.
  std::chrono::duration<double, std::milli> duration = std::chrono::high_resolution_clock::now() - start;




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111688/new/

https://reviews.llvm.org/D111688



More information about the llvm-commits mailing list