[LLVMbugs] Fix printing IntervalPartition

Vladimir Prus ghost at cs.msu.su
Tue Apr 26 00:50:46 PDT 2005


Hello,
currently, printing of IntervalPartion does not seem to work:

$ analyze -intervals a.bc
Printing analysis 'Interval Partition Construction' for function '_Z3bari':
0x85abf20
Printing analysis 'Interval Partition Construction' for function '_Z3fooi':
0x85abf20
0x85abd98

With the attached patch I get:

$ analyze -intervals a.bc
Printing analysis 'Interval Partition Construction' for function '_Z3bari':
-------------------------------------------------------------
Interval Contents:

entry:
        %tmp.0 = load int* %i           ; <int> [#uses=1]
        %tmp.1 = setgt int %tmp.0, 10           ; <bool> [#uses=1]
        br bool %tmp.1, label %then, label %UnifiedReturnBlock
...

which looks more reasonable. 

- Volodya


-------------- next part --------------
A non-text attachment was scrubbed...
Name: IntervalPartition.diff
Type: text/x-diff
Size: 715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20050426/6352e087/attachment.diff>


More information about the llvm-bugs mailing list