[llvm] [NVPTX] instcombine known pointer AS checks. (PR #112964)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 15:20:34 PDT 2024


================
@@ -413,11 +416,65 @@ static Instruction *simplifyNvvmIntrinsic(IntrinsicInst *II, InstCombiner &IC) {
   llvm_unreachable("All SpecialCase enumerators should be handled in switch.");
 }
 
+// Returns an instruction pointer (may be nullptr if we do not know the answer).
+// Returns nullopt if `II` is not one of the `isspacep` intrinsics.
+static std::optional<Instruction *>
----------------
AlexMaclean wrote:

Fair enough.

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


More information about the llvm-commits mailing list