mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix test/Regression/Transforms/LICM/2004-09-14-AliasAnalysisInvalidate.llx
This only fails on darwin or on X86 under valgrind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35f2bbe8c6
commit
5a85d9c664
@ -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