[llvm-commits] [llvm] r125398 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Nadav Rotem
nadav.rotem at intel.com
Fri Feb 11 11:57:47 PST 2011
Author: nadav
Date: Fri Feb 11 13:57:47 2011
New Revision: 125398
URL: http://llvm.org/viewvc/llvm-project?rev=125398&view=rev
Log:
SimplifySelectOps can only handle selects with a scalar condition. Add a check
that the condition is not a vector.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=125398&r1=125397&r2=125398&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Feb 11 13:57:47 2011
@@ -6872,6 +6872,9 @@
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() ||
More information about the llvm-commits
mailing list