[SelectionDAG] Add Opc_CheckPatternPredicate2 to support targets with more than 256 predicates.
This is an alternative to D156967 where I suggested the author could use a VBR type. This patch takes inspirations from Opc_EmitRegister2 that is used for two byte registers. I'm assuming 1 or 2 byte predicates should be enough so we don't need the fully generality of VBR. This avoids impacting the table size on targets that have more than 128 predicates already like X86. Reviewed By: bogner Differential Revision: https://reviews.llvm.org/D157196
parent
14d57545
Please register or sign in to comment