[llvm] [TableGen] Fix concatenation of subreg and artificial subregs (PR #114391)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 05:12:41 PDT 2024
================
@@ -411,6 +410,9 @@ CodeGenRegister::computeSubRegs(CodeGenRegBank &RegBank) {
Parts.push_back(getSubRegIndex(SR->ExplicitSubRegs[j]));
}
+ if (Parts.size() < 2)
+ continue;
----------------
sdesmalen-arm wrote:
Good point @jayfoad!
https://github.com/llvm/llvm-project/pull/114391
More information about the llvm-commits
mailing list