[PATCH] D157819: [RISCV][GISel] Make G_SELECT of pointers legal
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 10:55:26 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp:98
.widenScalarToNextPow2(0)
.clampScalar(0, XLenLLT, XLenLLT)
.clampScalar(1, XLenLLT, XLenLLT);
----------------
arsenm wrote:
> might want to add something like legalIf(isPointer(0)) to cover all the address spaces
Is AMDGPU the only target that uses multiple address spaces in GlobalISel today? I only see p0 in AArch64 for example.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157819/new/
https://reviews.llvm.org/D157819
More information about the llvm-commits
mailing list