OSDN Git Service

Disable trunc-store simplification on vectors.
authorNadav Rotem <nadav.rotem@intel.com>
Tue, 14 Jun 2011 07:18:26 +0000 (07:18 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Tue, 14 Jun 2011 07:18:26 +0000 (07:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132984 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index e843f5f..6f94076 100644 (file)
@@ -6425,7 +6425,7 @@ SDValue DAGCombiner::visitSTORE(SDNode *N) {
 
   // FIXME: is there such a thing as a truncating indexed store?
   if (ST->isTruncatingStore() && ST->isUnindexed() &&
-      Value.getValueType().isInteger()) {
+      Value.getValueType().isInteger() && !Value.getValueType().isVector()) {
     // See if we can simplify the input to this truncstore with knowledge that
     // only the low bits are being used.  For example:
     // "truncstore (or (shl x, 8), y), i8"  -> "truncstore y, i8"