[clang] [Clang][RISCV] Attach a range attribute to the vlenb builtin result (PR #219924)
Pengcheng Wang via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 1 00:31:52 PDT 2026
wangpc-pp wrote:
> I don't want to add this to clang just because there's no agreement on how to derive ranges/mark derived ranges on llvm.read_register in instcombine. Have we considered what that could look like?
Yes, I had considered to do it in instcombine. But `llvm.read_register` is not a target-specific intrinsic so it won't go through `XXXTargetTransformInfo::instCombineIntrinsic`, so we have to do it in the target-independent code but this is not encouraged according to https://llvm.org/docs/InstCombineContributorGuide.html#canonicalization-and-target-independence.
https://github.com/llvm/llvm-project/pull/219924
More information about the cfe-commits
mailing list