Skip to content

Commit 776745b

Browse files
Remove nested SDValue constructor calls.
1 parent ba77472 commit 776745b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7633,7 +7633,7 @@ SDValue DAGCombiner::visitAND(SDNode *N) {
76337633

76347634
if (SDValue(GN0, 0).hasOneUse() &&
76357635
isConstantSplatVectorMaskForType(N1.getNode(), ScalarVT) &&
7636-
TLI.isVectorLoadExtDesirable(SDValue(SDValue(N, 0)))) {
7636+
TLI.isVectorLoadExtDesirable(SDValue(N, 0))) {
76377637
SDValue Ops[] = {GN0->getChain(), GN0->getPassThru(), GN0->getMask(),
76387638
GN0->getBasePtr(), GN0->getIndex(), GN0->getScale()};
76397639

@@ -15724,7 +15724,7 @@ SDValue DAGCombiner::visitSIGN_EXTEND_INREG(SDNode *N) {
1572415724
// fold (sext_inreg (masked_gather x)) -> (sext_masked_gather x)
1572515725
if (auto *GN0 = dyn_cast<MaskedGatherSDNode>(N0)) {
1572615726
if (SDValue(GN0, 0).hasOneUse() && ExtVT == GN0->getMemoryVT() &&
15727-
TLI.isVectorLoadExtDesirable(SDValue(SDValue(N, 0)))) {
15727+
TLI.isVectorLoadExtDesirable(SDValue(N, 0))) {
1572815728
SDValue Ops[] = {GN0->getChain(), GN0->getPassThru(), GN0->getMask(),
1572915729
GN0->getBasePtr(), GN0->getIndex(), GN0->getScale()};
1573015730

0 commit comments

Comments
 (0)