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

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 10:52:13 PST 2024


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

Where do we run AS inference pass in the pipeline? If it's early, then I think it would make sense to keep isspacep folding in one place only, and AS inference pass looks like a better place for that.

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


More information about the llvm-commits mailing list