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:
parent
19d63f66a6
commit
b602e0720e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user