This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] [RFC] loop versioning
On Jan 6, 2004, at 5:24 PM, Zdenek Dvorak wrote:
Hello,
tree_duplicate_bb () is more suitable to copy loop header. For
other basic blocks inside loop, while duplicating a basic block
I may not have corresponding edge available.
it is trivial to update tree_duplicate_bb to not require the edge
(similarly as cfg_layout_duplicate_bb does not).
true, but based on your example, you can see that its purpose is
different.
Updating SSA after code duplication is nontrivial (in general
equivalent
to doing a full rewrite for the definitions in the duplicated code).
yup, but I'm willing to give it a shot.
What if I rename it to tree_duplicate_head_bb () and implement
new duplicate_bb() as Jan suggested ?
--
Devang