[PATCH] D32872: [PowerPC] Leverage PGO data to version/expand small/large memcpy calls

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 16:20:57 PST 2017


hfinkel added inline comments.


================
Comment at: lib/Target/PowerPC/PPCLowerMemIntrinsics.cpp:149
+  if (PSI) {
+    DominatorTree DT(*ParentFunc);
+    LoopInfo LI(DT);
----------------
You shouldn't do all of this for every memcpy call. That seems like it's at least O(N^2).


https://reviews.llvm.org/D32872





More information about the llvm-commits mailing list