[PATCH] D157819: [RISCV][GISel] Make G_SELECT of pointers legal
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 07:58:49 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp:98
.widenScalarToNextPow2(0)
.clampScalar(0, XLenLLT, XLenLLT)
.clampScalar(1, XLenLLT, XLenLLT);
----------------
might want to add something like legalIf(isPointer(0)) to cover all the address spaces
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