[llvm] [RISCV] Disable register overlap for vector indexed loads. (PR #220079)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 1 21:20:17 PDT 2026
================
@@ -1898,9 +1898,10 @@ multiclass VPseudoILoad<bit Ordered> {
defvar idxEMUL = !cast<LMULInfo>("V_" # IdxLInfo);
defvar Vreg = dataEMUL.vrclass;
defvar IdxVreg = idxEMUL.vrclass;
- defvar HasConstraint = !ne(dataEEW, idxEEW);
- defvar TypeConstraints =
- !if(!eq(dataEEW, idxEEW), 1, !if(!gt(dataEEW, idxEEW), !if(!ge(idxEMULOctuple, 8), 3, 1), 2));
+ // Don't allow overlapping registers even though it's allowed by the
+ // spec due to hardware issue on some CPUs.
+ defvar HasConstraint = true;
----------------
lukel97 wrote:
Can we make a subtarget feature and add it to the generic processors + sifive cores? That way `-mcpu` with other processors won't be affected
https://github.com/llvm/llvm-project/pull/220079
More information about the llvm-commits
mailing list