[llvm] r175060 - Metadata for annotating loops as parallel. The first consumer for this

Pekka Jääskeläinen pekka.jaaskelainen at tut.fi
Wed Feb 13 12:55:20 PST 2013


On 02/13/2013 09:42 PM, Hal Finkel wrote:
> Why does it need to refer to itself?

To make it an "universally unique MDNode" to truly identify the
loop across all module linkage/function inlining etc. Otherwise
the MD could get merged at some point with some other loop's
identifier.

The idea for producing such unique MDNode was borrowed from the TBAA
code (there was some root node generation method).

-- 
--Pekka




More information about the llvm-commits mailing list