HomePhabricator

[TableGen] CodeGenDAGPatterns::GenerateVariants - full caching of matching…

Authored by RKSimon on Sep 18 2018, 4:30 AM.

Description

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

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.

Differential Revision: https://reviews.llvm.org/D51839

llvm-svn: 342467