latch是什么

4 views
Skip to first unread message

Jianzhang Peng

unread,
Dec 20, 2009, 9:40:32 PM12/20/09
to hell...@googlegroups.com
Internal里面:
In general, a natural loop has one entry block (header) and possibly
several back edges (latches) leading to the header from the inside of
the loop。

然而我在debug struct loop的时候,发现:

(gdb) debug_loop loop 2
loop_2 (header = 5, latch = 7, niter = )
{
bb_7 (preds = {bb_5 }, succs = {bb_5 })
bb_5 (preds = {bb_7 bb_4 }, succs = {bb_7 bb_6 })
}

(gdb) debug_bb loop->latch
;; basic block 7, loop depth 1, count 0
;; prev block 4, next block 5

(code_label 107 105 106 7 7 "" [1 uses])
(note 106 107 79 7 [bb 7] NOTE_INSN_BASIC_BLOCK)


latch是一个基本块,为什么latch是一个lable的基本快,而不是一条边呢?

谢谢!
--
Jianzhang Peng

Eric Fisher

unread,
Dec 20, 2009, 9:45:47 PM12/20/09
to hell...@googlegroups.com
无所谓了,回边的dest总是header,所以把latch用回边的src基本块来表示会更方便些。

2009/12/21 Jianzhang Peng <pengji...@gmail.com>:

> --
>
> 您收到此邮件是因为您订阅了 Google 网上论坛的"HelloGcc Workshop"论坛。
> 要向此网上论坛发帖,请发送电子邮件至 hell...@googlegroups.com
> 要取消订阅此网上论坛,请发送电子邮件至 hellogcc+u...@googlegroups.com
> 若有更多问题,请通过 http://groups.google.com/group/hellogcc?hl=zh-CN 访问此网上论坛。
>
>
>

Jianzhang Peng

unread,
Dec 20, 2009, 10:00:55 PM12/20/09
to hell...@googlegroups.com
恩,谢谢

2009/12/21 Eric Fisher <joefo...@gmail.com>:

--
Jianzhang Peng

Reply all
Reply to author
Forward
0 new messages