forked from OSchip/llvm-project
[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:
parent
bffc657497
commit
2ab0148c14
|
@ -5050,7 +5050,7 @@ static bool MayFoldLoadIntoBroadcastFromMem(SDValue Op, MVT EltVT,
|
||||||
|
|
||||||
// We can not replace a wide volatile load with a broadcast-from-memory,
|
// 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.
|
// 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() ||
|
return !Ld->isVolatile() ||
|
||||||
Ld->getValueSizeInBits(0) == EltVT.getScalarSizeInBits();
|
Ld->getValueSizeInBits(0) == EltVT.getScalarSizeInBits();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue