[TableGen] Early exit from ExpandHwModeBasedTypes when there are no HwModes.
authorCraig Topper <craig.topper@sifive.com>
Sat, 22 Apr 2023 00:27:06 +0000 (17:27 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sat, 22 Apr 2023 00:27:25 +0000 (17:27 -0700)
commit63f6e70be9c278e9553b331c95fca26bc68f659a
tree1db93e7412e1ac99d0b415930fe6c31eda48bd88
parent9372e42fd027db8767c324369491b9314f6a218f
[TableGen] Early exit from ExpandHwModeBasedTypes when there are no HwModes.

Most targets don't use HwModes. For these targets we can skip
collecting the HwModes and copying all the pattern pointers.
llvm/utils/TableGen/CodeGenDAGPatterns.cpp