Added a function scalarizePHI() that sclarizes a vector phi instruction if it has...
authorAnat Shemer <anat.shemer@intel.com>
Thu, 18 Apr 2013 19:35:39 +0000 (19:35 +0000)
committerAnat Shemer <anat.shemer@intel.com>
Thu, 18 Apr 2013 19:35:39 +0000 (19:35 +0000)
commit77e95d04c430bc849aa1898cbd820517ec0f7465
tree0c6916f575e09647faecfb1e6e6fa397248d12b2
parentc0b4b6724c5887c839e236bea97016028fb5db19
Added a function scalarizePHI() that sclarizes a vector phi instruction if it has only 2 uses: one to promote the vector phi in a loop and the other use is an extract operation of one element at a constant location.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179783 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
test/Transforms/InstCombine/vec_phi_extract.ll [new file with mode: 0644]