[llvm] 7071cd3 - Revert "[Transforms] Silence a warning in SROA.cpp (NFC)"
Kirill Stoimenov via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 13:34:42 PST 2024
Author: Kirill Stoimenov
Date: 2024-12-12T21:31:15Z
New Revision: 7071cd3885d06bc1ac388db0188468d135b37dfa
URL: https://github.com/llvm/llvm-project/commit/7071cd3885d06bc1ac388db0188468d135b37dfa
DIFF: https://github.com/llvm/llvm-project/commit/7071cd3885d06bc1ac388db0188468d135b37dfa.diff
LOG: Revert "[Transforms] Silence a warning in SROA.cpp (NFC)"
This reverts commit 5b077506de26b1dfce1926895548b86f2106bed9.
Added:
Modified:
llvm/lib/Transforms/Scalar/SROA.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp
index 2cb3525231eac9..5b78b9c80a92af 100644
--- a/llvm/lib/Transforms/Scalar/SROA.cpp
+++ b/llvm/lib/Transforms/Scalar/SROA.cpp
@@ -5523,7 +5523,7 @@ bool SROA::propagateStoredValuesToLoads(AllocaInst &AI, AllocaSlices &AS) {
Insts.push_back(User);
} else if (auto *SI = dyn_cast<StoreInst>(User)) {
Type *UserTy = SI->getValueOperand()->getType();
- if (!SI->isSimple() || (PartitionType && UserTy != PartitionType))
+ if (!SI->isSimple() || PartitionType && UserTy != PartitionType)
AllSameAndValid = false;
PartitionType = UserTy;
Insts.push_back(User);
More information about the llvm-commits
mailing list