[llvm] [AMDGPU] Add coexec-friendly-isel mode to expand i64 min/max (PR #204331)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 01:18:06 PDT 2026


jayfoad wrote:

> On MI450, we are thinking these particular 64 bit int instructions are almost universally bad. They block the VALU unit for 32 cycles, which really kills coexecution opportunities in both single wave and muli wave cases.

Can you explain a bit more -- is this just saying that they have a 32 cycle latency, or is it somehow worse than that? I'd like to understand whether we should avoid generating them in all situations, or only when certain types of coexecution are a concern.

What about other 64-bit integer operations like V_CMP_* -- do they have similar problems?

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


More information about the llvm-commits mailing list