[PATCH] D95954: [NFC] Use the same type for bit fields in MCSchedClassDesc
Andrew Savonichev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 07:24:04 PST 2021
asavonic created this revision.
asavonic added a reviewer: RKSimon.
asavonic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Otherwise they are not allocated as a single bit field and take 4
bytes instead of 2.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95954
Files:
llvm/include/llvm/MC/MCSchedule.h
Index: llvm/include/llvm/MC/MCSchedule.h
===================================================================
--- llvm/include/llvm/MC/MCSchedule.h
+++ llvm/include/llvm/MC/MCSchedule.h
@@ -115,8 +115,8 @@
const char* Name;
#endif
uint16_t NumMicroOps : 14;
- bool BeginGroup : 1;
- bool EndGroup : 1;
+ uint16_t BeginGroup : 1;
+ uint16_t EndGroup : 1;
uint16_t WriteProcResIdx; // First index into WriteProcResTable.
uint16_t NumWriteProcResEntries;
uint16_t WriteLatencyIdx; // First index into WriteLatencyTable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95954.321098.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210203/7e70110c/attachment.bin>
More information about the llvm-commits
mailing list