[TableGen][ISel] Do a better job of factoring ScopeMatchers created during creation...
authorCraig Topper <craig.topper@gmail.com>
Mon, 21 Nov 2016 04:07:58 +0000 (04:07 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 21 Nov 2016 04:07:58 +0000 (04:07 +0000)
commit5e87d5264f1fb7c94aeb9bb893c1247dc0ddb188
tree41963e3f883f7baba6069ee42c27e79a0653ea78
parent0dfc09372f6a070d1c0b16ef6d89df1eb5b4805d
[TableGen][ISel] Do a better job of factoring ScopeMatchers created during creation of SwitchTypeMatcher.

Previously we were factoring when the ScopeMatcher was initially created, but it might get more Matchers added to it later. Delay factoring until we have fully created/populated the ScopeMatchers.

This reduces X86 isel tables by 154 bytes.

llvm-svn: 287520
llvm/utils/TableGen/DAGISelMatcherOpt.cpp