Decrease NumOperands from 32 to 16bits (matches MCInstrDesc) so we can use saved bits to extend Flags (https://reviews.llvm.org/D118118).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/MachineInstr.cpp | ||
---|---|---|
744 | MCID: so OK. |
Comment Actions
Change seems conceptually fine, but I don't really know anything about the machine layer and couldn't say whether this is safe or not.
Comment Actions
Looks fine. Just in case, in D118118 you will need to change the order of fields in order to avoid padding between them.
Comment Actions
This change broke the build for an internal project of ours (breadcrumb: rdar://109362033). The relevant code being compiled is a fairly large nested switch that results in a PHI node with 65k+ operands, which can't easily be turned into a table for perf reasons.
WDYT about making it the lower 24 bits of a uint32_t bitfield shared with AsmPrinterFlags in the upper 8?
You can leave this returning unsigned