For blocks that are not loop headers, just print their loop depth and header BB.
authorChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 21:11:06 +0000 (21:11 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 21:11:06 +0000 (21:11 +0000)
commit965df54254b9e73949fc5649b51c3ca1bed4b4a6
tree85b42fd23075bb25b004308315548aeb5e4cb280
parentd8d0aee26a5a759085bfa9114302e507c8685599
For blocks that are not loop headers, just print their loop depth and header BB.
For loop headers, print Inner loop along with the other stuff so it doesn't take
an extra line.  We now get stuff like this:

LBB1_4:                                                     ## %land.end
                                                            ##   in Loop: Header=BB1_1 Depth=1
        notb    %al
        testb   $1, %al
        jne     LBB1_8

and:

LBB1_6:                                                     ## %while.cond7
                                                            ## Inner Loop Header: Depth=3
                                                            ##     Inside Loop BB1_5 Depth 2
                                                            ##   Inside Loop BB1_1 Depth 1

which still isn't great for loop headers, but is much less verbose.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94221 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp