OSDN Git Service

Fixed the DAG combiner to better handle the folding of AND nodes for vector types...
authorSilviu Baranga <silviu.baranga@arm.com>
Wed, 5 Sep 2012 08:57:21 +0000 (08:57 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Wed, 5 Sep 2012 08:57:21 +0000 (08:57 +0000)
commit3d5e161fe45f9553009c0377a5689324aab1c64a
tree5156d034f65328336e5d50af9bae512624f7df9d
parent59a4a47a7bea7cc17877c6a3954ad9f8309ff1cb
Fixed the DAG combiner to better handle the folding of AND nodes for vector types. The previous code was making the assumption that the length of the bitmask returned by isConstantSplat was equal to the size of the vector type. Now we first make sure that the splat value has at least the length of the vector lane type, then we only use as many fields as we have available in the splat value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163203 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/ARM/vector-extend-narrow.ll