mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Disable trunc-store simplification on vectors.
llvm-svn: 132984
This commit is contained in:
parent
77f6a2d09e
commit
db789f2d76
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user