[PATCH] D150037: [InferAddressSpaces] Fix typo, replace getPtrOrVecOfPtrsAddressSpace with isPtrOrVecOfPtrsType

CaprYang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 6 06:15:44 PDT 2023


CaprYang created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
CaprYang requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150037

Files:
  llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp


Index: llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
+++ llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
@@ -523,7 +523,7 @@
       collectRewritableIntrinsicOperands(II, PostorderStack, Visited);
     else if (ICmpInst *Cmp = dyn_cast<ICmpInst>(&I)) {
       // FIXME: Handle vectors of pointers
-      if (getPtrOrVecOfPtrsAddressSpace(Cmp->getOperand(0)->getType())) {
+      if (isPtrOrVecOfPtrsType(Cmp->getOperand(0)->getType())) {
         PushPtrOperand(Cmp->getOperand(0));
         PushPtrOperand(Cmp->getOperand(1));
       }
@@ -802,7 +802,7 @@
     const PredicatedAddrSpaceMapTy &PredicatedAS,
     SmallVectorImpl<const Use *> *UndefUsesToFix) const {
   // All values in Postorder are flat address expressions.
-  assert(isPtrOrVecOfPtrsType(V->getType()) == FlatAddrSpace &&
+  assert(getPtrOrVecOfPtrsAddressSpace(V->getType()) == FlatAddrSpace &&
          isAddressExpression(*V, *DL, TTI));
 
   if (Instruction *I = dyn_cast<Instruction>(V)) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150037.520081.patch
Type: text/x-patch
Size: 1094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230506/c9a0b2a1/attachment.bin>


More information about the llvm-commits mailing list