[PATCH] D31416: [Scalarizer] Handle scalar arguments in vector GEP

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 28 00:27:48 PDT 2017


arsenm added inline comments.


================
Comment at: test/Transforms/Scalarizer/vector-gep.ll:1
+; RUN: opt -S -scalarizer %s -o - | FileCheck %s
+
----------------
You should be able to drop the -o - 


================
Comment at: test/Transforms/Scalarizer/vector-gep.ll:19
+
+;CHECK: @test1
+;CHECK: %[[I0:.i[0-9]*]] = extractelement <4 x i16*> %0, i32 0
----------------
CHECK-LABEL


================
Comment at: test/Transforms/Scalarizer/vector-gep.ll:101
+;CHECK: %.splat[[I3:.i[0-9]*]] = extractelement <4 x i16*> %.splat, i32 3
+;CHECK: getelementptr i16, i16* %.splat[[I3]], i16 3
----------------
Maybe add another test with inbounds?


https://reviews.llvm.org/D31416





More information about the llvm-commits mailing list