1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[SCCP] Report changes after removing stores to constant global

Differential Revision: https://reviews.llvm.org/D81228
This commit is contained in:
serge-sans-paille 2020-06-04 23:33:03 +02:00
parent 19d63f66a6
commit b602e0720e

View File

@ -2031,6 +2031,7 @@ bool llvm::runIPSCCP(
while (!GV->use_empty()) {
StoreInst *SI = cast<StoreInst>(GV->user_back());
SI->eraseFromParent();
MadeChanges = true;
}
M.getGlobalList().erase(GV);
++IPNumGlobalConst;