[llvm-commits] Fix some TableGen non-deterministic behavior.

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Sep 17 11:03:40 PDT 2012


On Sep 15, 2012, at 1:10 PM, Sean Silva <silvas at purdue.edu> wrote:

> This patchset fixes two instances of nondeterministic iteration in the TableGen output.
> 
> Patch 0001 refactors a comparator struct to be in Record.h. We already had two of them, but the preexisting ones do string comparisons, while LessRecordByID sorts by the Record's unique ID, which is just compares two `unsigned`. Now we have three comparators, but they each have their use cases I suppose.
> 
> Patch 0002 and 0003 each fix a particular instance of nondeterminism that I found.

LGTM.

/jakob




More information about the llvm-commits mailing list