SimplifySelectOps can only handle selects with a scalar condition. Add a check

that the condition is not a vector.

llvm-svn: 125398
This commit is contained in:
Nadav Rotem 2011-02-11 19:57:47 +00:00
parent 7b3f290d61
commit a49a02a04f
1 changed files with 3 additions and 0 deletions

View File

@ -6872,6 +6872,9 @@ SDValue DAGCombiner::SimplifySelect(DebugLoc DL, SDValue N0,
bool DAGCombiner::SimplifySelectOps(SDNode *TheSelect, SDValue LHS,
SDValue RHS) {
// Cannot simplify select with vector condition
if (TheSelect->getOperand(0).getValueType().isVector()) return false;
// If this is a select from two identical things, try to pull the operation
// through the select.
if (LHS.getOpcode() != RHS.getOpcode() ||