From 4dfb43c6a655574a9b59b552d05408c027d8cfaa Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sun, 17 Oct 2010 13:41:45 -0700 Subject: gallivm: Comment lp_build_insert_new_block(). --- src/gallium/auxiliary/gallivm/lp_bld_flow.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium/auxiliary') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.c b/src/gallium/auxiliary/gallivm/lp_bld_flow.c index f9d061fcb44..a2cee199a01 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_flow.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_flow.c @@ -39,6 +39,14 @@ /** + * 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. */ -- cgit v1.2.3