[PATCH] D26014: [ConstantFold] Get the correct vector type when folding a getelementptr instruction with vector indices

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 27 16:07:37 PDT 2016

davide added inline comments.

Comment at: test/Transforms/InstCombine/gep-vector.ll:12-15
+define <8 x i64*> @patatino2() {
+  %el = getelementptr inbounds i64, i64* undef, <8 x i64> undef
+  ret <8 x i64*> %el
I tried to replace this getelemptr with 

```getelementptr inbounds (i64, i64* undef, <8 x i64> undef)``` 
but I get a parser error. Is this asimmetry between `getelementptr` constant expression and `getelementptr` instruction intended, or am I missing something?


More information about the llvm-commits mailing list