This is an archive of the discontinued LLVM Phabricator instance.

[PredicateInfo] Use new Instruction::comesBefore instead of OI (NFC).
ClosedPublic

Authored by fhahn on Apr 19 2020, 1:39 AM.

Details

Summary

The recently added Instruction::comesBefore can be used instead of
maintaining a separate odereding in OrderedInstructions.

Diff Detail

Event Timeline

fhahn created this revision.Apr 19 2020, 1:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2020, 1:39 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic accepted this revision.Apr 19 2020, 2:20 AM

LGTM

The recently added Instruction::comesBefore can be used instead of
maintaining a separate odereding in OrderedInstructions.

To be clear, OrderedInstructions does not maintain a separate ordering anymore, it's just a thin wrapper around Instruction::comesBefore() (for the local case, which is the only thing we're using here.)

This revision is now accepted and ready to land.Apr 19 2020, 2:20 AM
This revision was automatically updated to reflect the committed changes.