[LLVMdev] loop metdata instruction

Krzysztof Parzyszek kparzysz at codeaurora.org
Mon Feb 25 14:11:16 PST 2013


On 2/25/2013 2:08 PM, Redmond, Paul wrote:
>
> I've been looking through past threads looking for an answer to why the loop metadata is attached to the loop latch branch. What is the reason for putting the metadata inside the loop rather than outside (for example on the branch into the loop header.)

Latch is a branch to the header.  What branch in particular do you have 
in mind?

Loop latch identifies the loop.  Loops with multiple latches are not 
very amenable to optimizations.

-Krzysztof


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation



More information about the llvm-dev mailing list