[llvm] 4b15156 - [NFC] inline variable
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 5 02:17:31 PST 2021
Author: Guillaume Chatelet
Date: 2021-02-05T10:17:02Z
New Revision: 4b15156dca323a530e2f4a08b0c1cc24750cc4b3
URL: https://github.com/llvm/llvm-project/commit/4b15156dca323a530e2f4a08b0c1cc24750cc4b3
DIFF: https://github.com/llvm/llvm-project/commit/4b15156dca323a530e2f4a08b0c1cc24750cc4b3.diff
LOG: [NFC] inline variable
Added:
Modified:
llvm/lib/CodeGen/CodeGenPrepare.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 93172887608c..2b6dbde3ac58 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;
More information about the llvm-commits
mailing list