Skip to content

Commit f383a47

Browse files
committed
[X86][AVX] combineInsertSubvector - remove concat_vectors(load(x),load(x)) --> sub_vbroadcast(x)
D58053/rL354340 added this to EltsFromConsecutiveLoads directly llvm-svn: 354732
1 parent 398d0b9 commit f383a47

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41949,11 +41949,6 @@ static SDValue combineInsertSubvector(SDNode *N, SelectionDAG &DAG,
4194941949
return Ld;
4195041950
}
4195141951
}
41952-
// If lower/upper loads are the same and there's no other use of the lower
41953-
// load, then splat the loaded value with a broadcast.
41954-
if (auto *Ld = dyn_cast<LoadSDNode>(peekThroughOneUseBitcasts(SubVec2)))
41955-
if (SubVec2 == SubVec && ISD::isNormalLoad(Ld) && Vec.hasOneUse())
41956-
return DAG.getNode(X86ISD::SUBV_BROADCAST, dl, OpVT, SubVec);
4195741952

4195841953
// If this broadcast/subv_broadcast is inserted into both halves, use a
4195941954
// larger broadcast/subv_broadcast.

0 commit comments

Comments
 (0)