mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 13:21:30 +00:00
Fix test/Regression/Transforms/LICM/2004-09-14-AliasAnalysisInvalidate.llx
This only fails on darwin or on X86 under valgrind. llvm-svn: 18377
This commit is contained in:
parent
1e093bfb2b
commit
537e5a6b50
@ -342,6 +342,8 @@ void PromoteMem2Reg::run() {
|
||||
if (PNs[i]) {
|
||||
if (Value *V = hasConstantValue(PNs[i])) {
|
||||
if (!isa<Instruction>(V) || dominates(cast<Instruction>(V), PNs[i])) {
|
||||
if (AST && isa<PointerType>(PNs[i]->getType()))
|
||||
AST->deleteValue(PNs[i]);
|
||||
PNs[i]->replaceAllUsesWith(V);
|
||||
PNs[i]->eraseFromParent();
|
||||
PNs[i] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user