Skip to content

Commit 3a81979

Browse files
authored
[X86] lowerShuffleAsBroadcast - use LoadSDNode::getBasePtr instead of raw getOperand() call. NFC. (#139747)
1 parent 0bda492 commit 3a81979

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13084,8 +13084,8 @@ static SDValue lowerShuffleAsBroadcast(const SDLoc &DL, MVT VT, SDValue V1,
1308413084
// uops even if the original vector load is not eliminated.
1308513085

1308613086
// Reduce the vector load and shuffle to a broadcasted scalar load.
13087-
LoadSDNode *Ld = cast<LoadSDNode>(V);
13088-
SDValue BaseAddr = Ld->getOperand(1);
13087+
auto *Ld = cast<LoadSDNode>(V);
13088+
SDValue BaseAddr = Ld->getBasePtr();
1308913089
MVT SVT = VT.getScalarType();
1309013090
unsigned Offset = BroadcastIdx * SVT.getStoreSize();
1309113091
assert((int)(Offset * 8) == BitOffset && "Unexpected bit-offset");

0 commit comments

Comments
 (0)