[PATCH] D81500: [SVE] Remove calls to VectorType::getNumElements from IR
    Eli Friedman via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jun 25 11:20:57 PDT 2020
    
    
  
efriedma added inline comments.
================
Comment at: llvm/include/llvm/IR/GetElementPtrTypeIterator.h:86
         else
-          NumElements = VTy->getNumElements();
+          NumElements = VTy->getElementCount().Min;
       } else
----------------
cast to FixedVectorType?
================
Comment at: llvm/lib/IR/Function.cpp:1338
+      auto *ReferenceType = dyn_cast<FixedVectorType>(ArgTys[RefArgNumber]);
+      auto *ThisArgVecTy = dyn_cast<FixedVectorType>(Ty);
       if (!ThisArgVecTy || !ReferenceType ||
----------------
This doesn't look right.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81500/new/
https://reviews.llvm.org/D81500
    
    
More information about the llvm-commits
mailing list