not all lakemont MCU support long nop.
we can't assume we can generate long nop by default for MCU.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Look good to me
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp | ||
---|---|---|
84 ↗ | (On Diff #78657) | Maybe it worth adding a comment here explaining why you are preventing generating long nops for lakemont. |
test/MC/X86/x86_long_nop.s | ||
19–20 ↗ | (On Diff #78657) | You may fit the comment in one line now, it will be still less than 80 characters. |
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp | ||
---|---|---|
80 ↗ | (On Diff #78657) | Not related to this patch, but as a follow-up work, consider replacing this big condition with string compares with a new subtarget feature (in X86.td). |
Comment Actions
lgmt.. At some point, we'll need to add support for the different "lakemont" processors so that we don't affect them all with changes like this.