[PATCH] D98046: [TableGen] Fix excessive compile time issue in FixedLenDecoderEmitter
Daniel Sanders via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 16 12:22:27 PDT 2021
dsanders accepted this revision.
dsanders added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/utils/TableGen/FixedLenDecoderEmitter.cpp:1125-1133
+ o.indent(Indentation);
+ if (UseInsertBits)
+ o << "insertBits(tmp, ";
+ else
+ o << "tmp = ";
+ o << "fieldFromInstruction(insn, " << EF.Base << ", " << EF.Width << ')';
+ if (UseInsertBits)
----------------
It looks like insertBits has implementations that cover both values of UseInsertBits. Would it make sense to always use insertBits here and rely on the type of tmp to pick the appropriate version of insertBits()?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98046/new/
https://reviews.llvm.org/D98046
More information about the llvm-commits
mailing list