[NFC] inline variable

This commit is contained in:
Guillaume Chatelet 2021-02-05 10:09:17 +00:00
parent e046c0c28b
commit 4b15156dca
1 changed files with 1 additions and 2 deletions

View File

@ -6931,11 +6931,10 @@ class VectorPromoteHelper {
StoreInst *ST = cast<StoreInst>(CombineInst);
unsigned AS = ST->getPointerAddressSpace();
Align Alignment = ST->getAlign();
// Check if this store is supported.
if (!TLI.allowsMisalignedMemoryAccesses(
TLI.getValueType(DL, ST->getValueOperand()->getType()), AS,
Alignment)) {
ST->getAlign())) {
// If this is not supported, there is no way we can combine
// the extract with the store.
return false;