[PATCH] D37928: [ConstantFold] Return the correct type when folding a GEP with vector indices

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 15 13:47:20 PDT 2017


davide added inline comments.


================
Comment at: lib/IR/ConstantFold.cpp:2074
+          GEPTy =
+              VectorType::get(PointerType::get(Ty, PtrTy->getAddressSpace()),
+                              VT->getNumElements());
----------------
efriedma wrote:
> Redundant call to PointerType::get()?
Yes, let me fix that before committing.


https://reviews.llvm.org/D37928





More information about the llvm-commits mailing list