[x86] use cast instead of dyn_cast for unchecked usage; NFC

This was noted as an independent clean-up in D112464.
This commit is contained in:
Sanjay Patel 2021-10-26 08:10:34 -04:00
parent bffc657497
commit 2ab0148c14
1 changed files with 1 additions and 1 deletions

View File

@ -5050,7 +5050,7 @@ static bool MayFoldLoadIntoBroadcastFromMem(SDValue Op, MVT EltVT,
// We can not replace a wide volatile load with a broadcast-from-memory,
// because that would narrow the load, which isn't legal for volatiles.
const LoadSDNode *Ld = dyn_cast<LoadSDNode>(Op.getNode());
auto *Ld = cast<LoadSDNode>(Op.getNode());
return !Ld->isVolatile() ||
Ld->getValueSizeInBits(0) == EltVT.getScalarSizeInBits();
}