Don't call SimplifyDemandedBits on vectors
authorChris Lattner <sabre@nondot.org>
Sat, 25 Mar 2006 22:19:00 +0000 (22:19 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 25 Mar 2006 22:19:00 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27128 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 8a0f488fdebd23af8936ae4cedc0d988a833b240..157b0a26b4eca494ad36db826328f0f4404e7375 100644 (file)
@@ -1120,7 +1120,8 @@ SDOperand DAGCombiner::visitAND(SDNode *N) {
   }
   // fold (and (sign_extend_inreg x, i16 to i32), 1) -> (and x, 1)
   // fold (and (sra)) -> (and (srl)) when possible.
-  if (SimplifyDemandedBits(SDOperand(N, 0)))
+  if (!MVT::isVector(VT) &&
+      SimplifyDemandedBits(SDOperand(N, 0)))
     return SDOperand();
   // fold (zext_inreg (extload x)) -> (zextload x)
   if (N0.getOpcode() == ISD::EXTLOAD) {