# New Ticket Created by Curtis Rawls # Please include the string: [perl #36223] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36223 >
This patch adds a new function, natural_preheader(), to cfg.c. This function finds and returns the preheader of a loop, if one exists. The preheader of a loop is the only predecessor of the loop's header outside of the loop, and the header is the only successor of the preheader. Therefore, the preheader's code always executes immediately before entering the loop body. The preheader is useful in the Loop-Invariant Code Motion optimization. -Curtis Rawls
preheader.patch
Description: Binary data