Skip to content
Commit 3f40d872 authored by Silviu Baranga's avatar Silviu Baranga
Browse files

Fixed the DAG combiner to better handle the folding of AND nodes for vector...

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.

llvm-svn: 163203
parent 1a5e4236
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment