Page MenuHomePhabricator

[TableGen] CodeGenDAGPatterns::GenerateVariants - full caching of matching predicates
ClosedPublic

Authored by RKSimon on Sep 9 2018, 6:50 AM.

Details

Summary

Further extension to D51035, this patch avoids all repeated predicates[] matching by caching as it collects the patterns that have multiple variants.

Saves around 25secs in debug builds of x86 -gen-dag-isel (and finally gets its runtime below 7mins!).

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Sep 9 2018, 6:50 AM
andreadb accepted this revision.Sep 18 2018, 3:10 AM

LGTM.

This revision is now accepted and ready to land.Sep 18 2018, 3:10 AM
This revision was automatically updated to reflect the committed changes.