Skip to content

Commit f7381a7

Browse files
committed
Revert 29fada4
Seeing a test failure with asan in Halide generated code, reverting while I investigate. Differential Revision: https://reviews.llvm.org/D121987
1 parent 27ef749 commit f7381a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Transforms/Scalar/EarlyCSE.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,10 @@ class EarlyCSE {
598598
const TargetTransformInfo &TTI, DominatorTree &DT,
599599
AssumptionCache &AC, MemorySSA *MSSA)
600600
: TLI(TLI), TTI(TTI), DT(DT), AC(AC), SQ(DL, &TLI, &DT, &AC), MSSA(MSSA),
601-
MSSAUpdater(std::make_unique<MemorySSAUpdater>(MSSA)) {}
601+
MSSAUpdater(std::make_unique<MemorySSAUpdater>(MSSA)) {
602+
if (MSSA)
603+
MSSA->ensureOptimizedUses();
604+
}
602605

603606
bool run();
604607

0 commit comments

Comments
 (0)