[llvm] 08075a7 - Revert f7381a795ab235d34c94eaf01dc880eb5b89619d
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 16:07:01 PDT 2022
Author: Alina Sbirlea
Date: 2022-04-06T16:06:14-07:00
New Revision: 08075a7ee881f3584da8eeee15b4d7dae9fe5536
URL: https://github.com/llvm/llvm-project/commit/08075a7ee881f3584da8eeee15b4d7dae9fe5536
DIFF: https://github.com/llvm/llvm-project/commit/08075a7ee881f3584da8eeee15b4d7dae9fe5536.diff
LOG: Revert f7381a795ab235d34c94eaf01dc880eb5b89619d
Roll-forward 29fada4a3d3db309f11f7fa7a0c61cd4021e9947.
Issue triggered was due to UB.
Differential Revision: https://reviews.llvm.org/D121987
Added:
Modified:
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
index ac0cc9560c69d..331e9b429d4ba 100644
--- a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
+++ b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
@@ -598,10 +598,7 @@ class EarlyCSE {
const TargetTransformInfo &TTI, DominatorTree &DT,
AssumptionCache &AC, MemorySSA *MSSA)
: TLI(TLI), TTI(TTI), DT(DT), AC(AC), SQ(DL, &TLI, &DT, &AC), MSSA(MSSA),
- MSSAUpdater(std::make_unique<MemorySSAUpdater>(MSSA)) {
- if (MSSA)
- MSSA->ensureOptimizedUses();
- }
+ MSSAUpdater(std::make_unique<MemorySSAUpdater>(MSSA)) {}
bool run();
More information about the llvm-commits
mailing list