[llvm] r179353 - Add a flag to align all basic blocks in the function.

Nadav Rotem nrotem at apple.com
Thu Apr 11 17:58:55 PDT 2013


It aligns all blocks to a specific alignment. Do you prefer a different name ? 

On Apr 11, 2013, at 5:57 PM, Chandler Carruth <chandlerc at google.com> wrote:

> 
> On Thu, Apr 11, 2013 at 5:48 PM, Nadav Rotem <nrotem at apple.com> wrote:
> +  if (AlignAllBlock) {
> +    // Align all of the blocks in the function to a specific alignment.
> +    for (MachineFunction::iterator FI = F.begin(), FE = F.end();
> +         FI != FE; ++FI)
> +      FI->setAlignment(AlignAllBlock);
> +    return true;
> +  }
> +
>    buildCFGChains(F);
> 
> 
> Huh? This turns of block layout altogether, which seems rather surprising for a flag called "align-all-blocks".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130411/3c9a0b43/attachment.html>


More information about the llvm-commits mailing list