Re: [PATCH v3 5/6] x86: alternative.h: use asm_inline for all alternative variants

2019-09-12 Thread Ingo Molnar
* Rasmus Villemoes wrote: > Most, if not all, uses of the alternative* family just provide one or > two instructions in .text, but the string literal can be quite large, > causing gcc to overestimate the size of the generated code. That in > turn affects its decisions about inlining of the func

[PATCH v3 5/6] x86: alternative.h: use asm_inline for all alternative variants

2019-09-12 Thread Rasmus Villemoes
Most, if not all, uses of the alternative* family just provide one or two instructions in .text, but the string literal can be quite large, causing gcc to overestimate the size of the generated code. That in turn affects its decisions about inlining of the function containing the alternative() asm