[llvm] [LangRef] inline asm: the instructions are treated opaquely (PR #157080)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 16:39:35 PDT 2025


gonzalobg wrote:

Agree. 

The programmer doesn't have control about how instructions around the string are scheduled, so I think its fine and even desirable for a backend to inspect the string to guess its latency to be able to schedule it properly around surrounding instructions.

What I think would not be fine is to modify the string (e.g., reorder instructions within the string to improve latency, e.g., based on information from comments in the string), or impact the semantic of the programs (e.g. backend erroring if it doesn't know the latency of an instruction within the string).

I have no suggestions about how to word this.

https://github.com/llvm/llvm-project/pull/157080


More information about the llvm-commits mailing list