LoopVectorizer - skip 'bitcast' between GEP and load.
authorElena Demikhovsky <elena.demikhovsky@intel.com>
Tue, 3 Nov 2015 10:29:34 +0000 (10:29 +0000)
committerElena Demikhovsky <elena.demikhovsky@intel.com>
Tue, 3 Nov 2015 10:29:34 +0000 (10:29 +0000)
commit2c4a333422f4fb220f0afcb1ba316940cb92db31
treef35dfe83d11368d8dd458b1a4cbc016757351e3e
parenta64f17562f974f53233acce589e984e1861828e8
LoopVectorizer - skip 'bitcast' between GEP and load.

Skipping 'bitcast' in this case allows to vectorize load:

  %arrayidx = getelementptr inbounds double*, double** %in, i64 %indvars.iv
  %tmp53 = bitcast double** %arrayidx to i64*
  %tmp54 = load i64, i64* %tmp53, align 8

Differential Revision http://reviews.llvm.org/D14112

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251907 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/X86/vectorization-remarks-profitable.ll
test/Transforms/LoopVectorize/gep_with_bitcast.ll [new file with mode: 0644]