[llvm] [SelectionDAG] Add space-optimized forms of OPC_CheckComplexPat (PR #73310)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 19:12:07 PST 2024
================
@@ -602,6 +601,7 @@ bool MatcherGen::EmitMatcherCode(unsigned Variant) {
// Emit a CheckComplexPat operation, which does the match (aborting if it
// fails) and pushes the matched operands onto the recorded nodes list.
+ CGP.increaseComplexPatternUsage(CP);
----------------
arsenm wrote:
Could you have done this before the actual emission to keep the const during emission?
https://github.com/llvm/llvm-project/pull/73310
More information about the llvm-commits
mailing list