diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-10-17 13:41:45 -0700 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-10-17 18:23:18 -0700 |
commit | 4dfb43c6a655574a9b59b552d05408c027d8cfaa (patch) | |
tree | aab4daf94f44a17290a7c366dc851546d859447c /src | |
parent | 5b966f58e3d87fc271cc429be969cf98eec991ca (diff) |
gallivm: Comment lp_build_insert_new_block().
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_flow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.c b/src/gallium/auxiliary/gallivm/lp_bld_flow.c index f9d061fcb4..a2cee199a0 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. */ |