summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-02-23 18:53:03 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-02-23 18:53:03 +0000
commitf383a47b7db24b6eeceeecfd4baed12efd138710 (patch)
tree4f18376910c6e6fa6f2e48c2d8fe8f5b88666f0c /llvm/lib/Target
parent398d0b9e96ab46b5327557455eecde3a33764237 (diff)
downloadbcm5719-llvm-f383a47b7db24b6eeceeecfd4baed12efd138710.tar.gz
bcm5719-llvm-f383a47b7db24b6eeceeecfd4baed12efd138710.zip
[X86][AVX] combineInsertSubvector - remove concat_vectors(load(x),load(x)) --> sub_vbroadcast(x)
D58053/rL354340 added this to EltsFromConsecutiveLoads directly llvm-svn: 354732
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 1db9f1274d0..c5824b366cd 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -41949,11 +41949,6 @@ static SDValue combineInsertSubvector(SDNode *N, SelectionDAG &DAG,
return Ld;
}
}
- // If lower/upper loads are the same and there's no other use of the lower
- // load, then splat the loaded value with a broadcast.
- if (auto *Ld = dyn_cast<LoadSDNode>(peekThroughOneUseBitcasts(SubVec2)))
- if (SubVec2 == SubVec && ISD::isNormalLoad(Ld) && Vec.hasOneUse())
- return DAG.getNode(X86ISD::SUBV_BROADCAST, dl, OpVT, SubVec);
// If this broadcast/subv_broadcast is inserted into both halves, use a
// larger broadcast/subv_broadcast.
OpenPOWER on IntegriCloud