Roll-forward 29fada4a3d.
Issue triggered was due to UB.

Differential Revision: https://reviews.llvm.org/D121987
This commit is contained in:
Alina Sbirlea 2022-03-29 16:05:08 -07:00
parent 8e1d9f0032
commit 08075a7ee8
1 changed files with 1 additions and 4 deletions

View File

@ -598,10 +598,7 @@ public:
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();