[llvm-commits] [patch] Define a canonical order for the pairs in the range metadata

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed May 30 14:13:22 PDT 2012


While working on PR12979 I found it useful to assume that the
intervals in the range metadata to be in a canonical order. This patch
enforces them to be non-overlapping, non-contiguous and sorted by the
lower end (signed comparison).

While this can be seen as a minor backward incompatibility, all
frontends produce IL with only one interval in the range metadata and
I am currently implementing the first case where we will merge two
ranges, so I don't think it would actually reject any existing
bitcode.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120530/151c1a11/attachment.obj>


More information about the llvm-commits mailing list