projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b8d20
)
Insert a sanity check on the combining of x86 truncing-store nodes. This comes to...
author
Nadav Rotem
<nadav.rotem@intel.com>
Wed, 21 Sep 2011 08:45:10 +0000
(08:45 +0000)
committer
Nadav Rotem
<nadav.rotem@intel.com>
Wed, 21 Sep 2011 08:45:10 +0000
(08:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140246
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelLowering.cpp
b/lib/Target/X86/X86ISelLowering.cpp
index 175d23750e2836e512f95703f1b9f539a3b2c647..f7aae14bba021dfeb5431b0fc4a9607a57c64b90 100644
(file)
--- a/
lib/Target/X86/X86ISelLowering.cpp
+++ b/
lib/Target/X86/X86ISelLowering.cpp
@@
-13563,6
+13563,9
@@
static SDValue PerformSTORECombine(SDNode *N, SelectionDAG &DAG,
// From, To sizes and ElemCount must be pow of two
if (!isPowerOf2_32(NumElems * FromSz * ToSz)) return SDValue();
+ // We are going to use the original vector elt for storing.
+ // accumulated smaller vector elements must be a multiple of the store size.
+ if (0 != (NumElems * FromSz) % ToSz) return SDValue();
unsigned SizeRatio = FromSz / ToSz;