Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Analysis and Representation of Loops   [Contents][Index]


15.4 Loop-closed SSA form

Throughout the loop optimizations on tree level, one extra condition isenforced on the SSA form: No SSA name is used outside of the loop inthat it is defined. The SSA form satisfying this condition is called“loop-closed SSA form” – LCSSA. To enforce LCSSA, PHI nodes must becreated at the exits of the loops for the SSA names that are usedoutside of them. Only the real operands (not virtual SSA names) areheld in LCSSA, in order to save memory.

There are various benefits of LCSSA:

However, it also means LCSSA must be updated. This is usuallystraightforward, unless you create a new value in loop and use itoutside, or unless you manipulate loop exit edges (functions areprovided to make these manipulations simple).rewrite_into_loop_closed_ssa is used to rewrite SSA form toLCSSA, andverify_loop_closed_ssa to check that the invariant ofLCSSA is preserved.


Next:Scalar evolutions, Previous:Loop manipulation, Up:Analysis and Representation of Loops   [Contents][Index]


[8]ページ先頭

©2009-2026 Movatter.jp