[m_Constant] Check #operands/results before hasTrait()
We know that all ConstantLike operations have one result and no operands, so check this first before doing the trait check. This change speeds up Canonicalize on a CIRCT testcase by ~5%. Differential Revision: https://reviews.llvm.org/D98615
Loading
Please register or sign in to comment