[TableGen] Avoid extra IntrusiveRefCntPtr when calling SimplifyTree. NFC
authorCraig Topper <craig.topper@sifive.com>
Mon, 17 Apr 2023 01:07:10 +0000 (18:07 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 17 Apr 2023 01:57:27 +0000 (18:57 -0700)
commitf0c3dfdbf1e3921638fa3dda4944fd84e9bb7e45
treed950cbba276ceaa4a97c0985ec273104821af9cc
parent2bcfff6708d293abab87a4d5a1dff25950d55d91
[TableGen] Avoid extra IntrusiveRefCntPtr when calling SimplifyTree. NFC

Add a helper to get modifiable access to the IntrusiveRefCntPtr
stored in the Children array. This avoids copying and overwriting the child.
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h