[#llvm-FlattenCFG] = xref:llvm.adoc[llvm]::FlattenCFG :relfileprefix: ../ :mrdocs: Flatten a CFG by collapsing related if‐conditions and regions. == Synopsis Declared in `<llvm/Transforms/Utils/Local.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool FlattenCFG( xref:llvm/BasicBlock.adoc[BasicBlock]* BB, xref:llvm/AAResults.adoc[AAResults]* AA = nullptr); ---- == Description This function is used to flatten a CFG. For example, it uses parallel‐and and parallel‐or mode to collapse if‐conditions and merge if‐regions with identical statements. == Return Value True if the CFG was flattened. == Parameters [cols="1,4"] |=== | Name| Description | *BB* | Basic block whose surrounding CFG may be flattened. | *AA* | Optional alias analysis used during flattening. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#