[TableGen] Avoid creating a ScopeMatcher full of nullptrs.
authorCraig Topper <craig.topper@sifive.com>
Sun, 2 Apr 2023 18:38:26 +0000 (11:38 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sun, 2 Apr 2023 19:02:55 +0000 (12:02 -0700)
commit2be67e14ba4fb65b07b04b5a74e58e4749fd7dc2
treec626d80f4da5ebe0fe2eb2f717e8defd3ced034d
parent741298ad06e3a8aa9c68d6ff50ba71d16891e00e
[TableGen] Avoid creating a ScopeMatcher full of nullptrs.

The call to FactorNodes will catch it and remove it, but it's easy
to catch at creation.

Remove the now unnecessary null checks from a loop in factor nodes.
llvm/utils/TableGen/DAGISelMatcherOpt.cpp