[PATCH] D102533: [NFC][OpaquePtr] Avoid using PointerType::getElementType() in VectorUtils.cpp
    Nikita Popov via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri May 14 14:11:11 PDT 2021
    
    
  
nikic added inline comments.
================
Comment at: llvm/lib/Analysis/VectorUtils.cpp:967
 
-      Value *Ptr = getLoadStorePointerOperand(&I);
       // We don't check wrapping here because we don't know yet if Ptr will be
----------------
Depending on how common the pattern is, it might make sense to add `getLoadStoreType` to complement `getLoadStorePointerOperand` (and `getLoadStoreAlignment` and `getLoadStoreAddressSpace`).
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102533/new/
https://reviews.llvm.org/D102533
    
    
More information about the llvm-commits
mailing list