[clang] [llvm] [RISCV] Mark {vl, vtype} as clobber in inline assembly (PR #128636)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 4 20:49:09 PST 2025


topperc wrote:

> > But the purpose we add vl/vtype dependencies is to prevent the Post-RA scheduler moving vsetvl instruction across inline assembly. I'm not sure if there's better approach to solve this problem.
> 
> Maybe have RISCVInsertVSETVLI add implicit use operands to the inline assembly at that point? It's what we do for all the vector instructions. In this case, you might want implicit defs.

I think we should try this RISCVInsertVSETVLI idea.

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


More information about the cfe-commits mailing list