[clang] [llvm] [RISCV] Mark {vl, vtype} as clobber in inline assembly (PR #128636)
Hank Chang via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 24 22:57:09 PST 2025
HankChang736 wrote:
> I think this may not be the right way.
>
> 1. We should at least add vl/vtype to clobbered registers when V is specified.
>
> 2. The asm may not depend on vl/type, but adding vl/type dependencies unconditionally stop further scheduling.
Yes, you're right. 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.
https://github.com/llvm/llvm-project/pull/128636
More information about the cfe-commits
mailing list