diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2021-02-05 10:09:17 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2021-02-05 10:17:02 +0000 |
commit | 4b15156dca323a530e2f4a08b0c1cc24750cc4b3 (patch) | |
tree | 266013649bf085538a0c57590b262ff7c4775bda /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | e046c0c28b108e3799d139e11075a274dcc2ef22 (diff) | |
download | llvm-4b15156dca323a530e2f4a08b0c1cc24750cc4b3.zip llvm-4b15156dca323a530e2f4a08b0c1cc24750cc4b3.tar.gz llvm-4b15156dca323a530e2f4a08b0c1cc24750cc4b3.tar.bz2 |
[NFC] inline variable
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 9317288..2b6dbde 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -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; |