[llvm] [NVPTX] Add TTI support for folding isspacep in InferAS (PR #114486)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 11:04:27 PST 2024


================
@@ -458,7 +459,7 @@ handleSpaceCheckIntrinsics(InstCombiner &IC, IntrinsicInst &II) {
       if (auto *ASCO = dyn_cast<AddrSpaceCastOperator>(Op0))
         AS = ASCO->getOperand(0)->getType()->getPointerAddressSpace();
----------------
AlexMaclean wrote:

Looks like it is only run in `llc`. I see AMDGPU runs this pass in `opt` so we should maybe consider doing the same, but I'm not sure how we'd make that decision. 

https://github.com/llvm/llvm-project/pull/114486


More information about the llvm-commits mailing list