[PATCH] D29295: Move core RDF files from lib/Target/Hexagon to CodeGen

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 10:50:27 PST 2017


hiraditya added inline comments.


================
Comment at: lib/CodeGen/RDFGraph.cpp:596
+  };
+  NodeList Ms = members_if(EqBB, G);
+  if (!Ms.empty())
----------------
This function findBlock appears to be  O(n) algorithm, and it is used in multiple places where this function is called for each BasicBlock in the function. Is there a way to speed up this algorithm.


Repository:
  rL LLVM

https://reviews.llvm.org/D29295





More information about the llvm-commits mailing list