projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dcd188d
)
Fix PR2032. Inform the alias analysis of changes to the underlying program.
author
Nick Lewycky
<nicholas@mxc.ca>
Thu, 14 Feb 2008 07:11:24 +0000
(07:11 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Thu, 14 Feb 2008 07:11:24 +0000
(07:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47111
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/GVN.cpp
b/lib/Transforms/Scalar/GVN.cpp
index 95bb0ddfbc4e6be725baee6e14cbe0772c3a6ebf..41a23ed6c7cf2123cc470e41d354b1d309862408 100644
(file)
--- a/
lib/Transforms/Scalar/GVN.cpp
+++ b/
lib/Transforms/Scalar/GVN.cpp
@@
-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);