[PATCH] D88487: [TableGen][GlobalISel] add handling of nested *_SUBREG
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 11:11:41 PDT 2020
arsenm added inline comments.
================
Comment at: llvm/utils/TableGen/GlobalISelEmitter.cpp:4954
}
+ else if (InstName == "INSERT_SUBREG") {
+ TreePatternNode *Child0 = N->getChild(0);
----------------
ehjogab wrote:
> arsenm wrote:
> > No else after return
> In the original code, there is only an 'if' and no 'else', so I followed the same original structure by just adding the 'else if's. I believe the 'else' case is handled by the code that follow these if statements.
I don't see what you are saying. There was no else after return pattern here before, and I don't see how this is continuing it. The elses can be removed and this will be a sequence of if () { foo(); return }
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88487/new/
https://reviews.llvm.org/D88487
More information about the llvm-commits
mailing list