File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ X86TargetMachine::getSubtargetImpl(const Function &F) const {
248
248
StringRef FS =
249
249
FSAttr.isValid () ? FSAttr.getValueAsString () : (StringRef)TargetFS;
250
250
251
- SmallString<512 > Key;
251
+ SmallString<64 > Key;
252
252
// The additions here are ordered so that the definitely short strings are
253
253
// added first so we won't exceed the small size. We append the
254
254
// much longer FS string at the end so that we only heap allocate at most
@@ -261,7 +261,7 @@ X86TargetMachine::getSubtargetImpl(const Function &F) const {
261
261
StringRef Val = PreferVecWidthAttr.getValueAsString ();
262
262
unsigned Width;
263
263
if (!Val.getAsInteger (0 , Width)) {
264
- Key += " prefer-vector-width= " ;
264
+ Key += ' p ' ;
265
265
Key += Val;
266
266
PreferVectorWidthOverride = Width;
267
267
}
@@ -274,7 +274,7 @@ X86TargetMachine::getSubtargetImpl(const Function &F) const {
274
274
StringRef Val = MinLegalVecWidthAttr.getValueAsString ();
275
275
unsigned Width;
276
276
if (!Val.getAsInteger (0 , Width)) {
277
- Key += " min-legal-vector-width= " ;
277
+ Key += ' m ' ;
278
278
Key += Val;
279
279
RequiredVectorWidth = Width;
280
280
}
@@ -284,7 +284,6 @@ X86TargetMachine::getSubtargetImpl(const Function &F) const {
284
284
Key += CPU;
285
285
286
286
// Add tune CPU to the Key.
287
- Key += " tune=" ;
288
287
Key += TuneCPU;
289
288
290
289
// Keep track of the start of the feature portion of the string.
You can’t perform that action at this time.
0 commit comments