mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 21:46:50 +00:00
Fix PR2032. Inform the alias analysis of changes to the underlying program.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dcd188d33f
commit
95f0ba2703
@ -857,6 +857,8 @@ Value *GVN::GetValueForBlock(BasicBlock *BB, LoadInst* orig,
|
||||
|
||||
PN->addIncoming(val, *PI);
|
||||
}
|
||||
AliasAnalysis& AA = getAnalysis<AliasAnalysis>();
|
||||
AA.copyValue(orig, PN);
|
||||
|
||||
// Attempt to collapse PHI nodes that are trivially redundant
|
||||
Value* v = CollapsePhi(PN);
|
||||
|
Loading…
Reference in New Issue
Block a user