This is an archive of the discontinued LLVM Phabricator instance.

[PredicateInfo] Fold PredicateWithCondition into PredicateBase (NFC).
ClosedPublic

Authored by fhahn on Jul 18 2020, 3:51 AM.

Details

Summary

Each concrete instance of a predicate has a condition (also noted in the
original PredicateBase comment) and to me it seems like there is no
clear benefit of having both PredicateBase and PredicateWithCondition
and they can be folded together.

Diff Detail

Event Timeline

fhahn created this revision.Jul 18 2020, 3:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2020, 3:51 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic added inline comments.Jul 18 2020, 4:10 AM
llvm/lib/Transforms/Scalar/NewGVN.cpp
1541–1542

This shouldn't be needed anymore -- PI is already PredicateBase.

nikic accepted this revision.Jul 18 2020, 4:12 AM

LG. We can always reintroduce the split it it should become useful in the future. It isn't right now.

This revision is now accepted and ready to land.Jul 18 2020, 4:12 AM
This revision was automatically updated to reflect the committed changes.