[PATCH] Improve Cost model for SLPVectorizer when we have a vector division by power of 2

Sanjay Patel spatel at rotateright.com
Fri Aug 22 07:53:58 PDT 2014


================
Comment at: test/Transforms/SLPVectorizer/X86/powof2div.ll:9
@@ +8,3 @@
+;CHECK: sdiv <4 x i32>
+define void @f(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32* noalias nocapture readonly %c){
+entry:
----------------
Does this test case require 3 operands and adds, or can it be simplified to just do the sdivs?

Please also use CHECK-LABEL for both test cases to make it easier for future additions in each file. If the output is entirely predictable, use CHECK-NEXT's and specify each instruction including the 'ret'.

http://reviews.llvm.org/D4971






More information about the llvm-commits mailing list