[PATCH] D67104: GlobalISel/TableGen: Fix handling of EXTRACT_SUBREG constraints
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 16:55:04 PDT 2019
arsenm marked an inline comment as done.
arsenm added inline comments.
================
Comment at: utils/TableGen/GlobalISelEmitter.cpp:3977-3978
+ //
+ // FIXME: This may introduce an extra copy if the chosen class doesn't
+ // actually contain the subregisters.
+ const auto &SrcRCDstRCPair =
----------------
paquette wrote:
> Shouldn't `getMatchingSubClassWithSubRegs` always return a class which contains the subregisters?
>
> If `SuperClass` doesn't have an appropriate subclass, then `getMatchingSubClassWithSubRegs` should return None, no?
This comment was just copied from the other handling (still not sure why the sub-pattern case needs to be handled differently). I can just drop it. I'm not sure what it's worried about.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67104/new/
https://reviews.llvm.org/D67104
More information about the llvm-commits
mailing list