[TableGen] Use PointerUnion for Operator and Val in TreePatternNode.
authorCraig Topper <craig.topper@sifive.com>
Mon, 17 Apr 2023 03:10:51 +0000 (20:10 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 17 Apr 2023 03:10:51 +0000 (20:10 -0700)
commit73925b3a0c1dabc094ae38a712df34e95dd08446
tree1c0b76af24f3022971a41835bd307198fb3ce522
parent7943b994876bbde02eff5f41991d0c2fd54aaaa6
[TableGen] Use PointerUnion for Operator and Val in TreePatternNode.

These fields are never set at the same time so we can store them
using a single PointerUnion.
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h