arsenm added a comment.

I don’t think constructing in the pass is the solution. Why exactly is this 
introducing such a big slowdown?



================
Comment at: llvm/lib/CodeGen/AtomicExpandPass.cpp:180
 
+  ORE = std::make_shared<OptimizationRemarkEmitter>(&F);
   auto &TM = TPC->getTM<TargetMachine>();
----------------
There’s basically never a reason to use shared_ptr over unique_ptr


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106891

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to