[TableGen] Simplify how commuted variants are generated in GenerateVariantsOf. NFC
authorCraig Topper <craig.topper@sifive.com>
Mon, 10 Apr 2023 18:29:01 +0000 (11:29 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 10 Apr 2023 18:29:01 +0000 (11:29 -0700)
commit6de3afeaef70f35ab10384625cefaba5311c1d64
treefc03747149804cbe3f4f898d3f95bcf38c31b453
parent18777c7b0cd9d01c21b3bbf41dbacb905a19aefb
[TableGen] Simplify how commuted variants are generated in GenerateVariantsOf. NFC

We don't need to copy the ChildVariants vector into a new vector.
We're using std::move on every entry we copy so they clearly
aren't needed again. We can swap entries in the vector and reuse
it instead.
llvm/utils/TableGen/CodeGenDAGPatterns.cpp