gallivm: Comment lp_build_insert_new_block().
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 17 Oct 2010 20:41:45 +0000 (13:41 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 18 Oct 2010 01:23:18 +0000 (18:23 -0700)
src/gallium/auxiliary/gallivm/lp_bld_flow.c

index f9d061fcb446b111cb713befdefff1074e939b57..a2cee199a010c4fcfdf4fcaf81fdad1763400c8b 100644 (file)
 
 
 /**
+ * Insert a new block, right where builder is pointing to.
+ *
+ * This is useful important not only for aesthetic reasons, but also for
+ * performance reasons, as frequently run blocks should be laid out next to
+ * each other and fall-throughs maximized.
+ *
+ * See also llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp.
+ *
  * Note: this function has no dependencies on the flow code and could
  * be used elsewhere.
  */