src/share/vm/opto/superword.hpp

changeset 3886
6f8f439e247d
parent 3882
8c92982cbbc4
child 4105
8ae8f9dd7099
     1.1 --- a/src/share/vm/opto/superword.hpp	Mon Jun 18 15:17:30 2012 -0700
     1.2 +++ b/src/share/vm/opto/superword.hpp	Tue Jun 19 15:12:56 2012 -0700
     1.3 @@ -264,11 +264,14 @@
     1.4                                       _iv = lp->as_CountedLoop()->phi()->as_Phi(); }
     1.5    int      iv_stride()             { return lp()->as_CountedLoop()->stride_con(); }
     1.6  
     1.7 -  int vector_width_in_bytes(BasicType bt) {
     1.8 -    return MIN2(ABS(iv_stride())*type2aelembytes(bt),
     1.9 -                Matcher::vector_width_in_bytes(bt));
    1.10 +  int vector_width(Node* n) {
    1.11 +    BasicType bt = velt_basic_type(n);
    1.12 +    return MIN2(ABS(iv_stride()), Matcher::max_vector_size(bt));
    1.13    }
    1.14 -
    1.15 +  int vector_width_in_bytes(Node* n) {
    1.16 +    BasicType bt = velt_basic_type(n);
    1.17 +    return vector_width(n)*type2aelembytes(bt);
    1.18 +  }
    1.19    MemNode* align_to_ref()            { return _align_to_ref; }
    1.20    void  set_align_to_ref(MemNode* m) { _align_to_ref = m; }
    1.21  

mercurial