diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-10 20:37:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-10 20:37:15 +0000 |
commit | 075fb5d68fcb55d26e44c48f07dfdbbfa21ccb2a (patch) | |
tree | bd2ac0b33edd3125d8741077ff4a5c274276b35e /lib/Analysis/InstructionSimplify.cpp | |
parent | af3d38f70ebba9fec0048c2540dbdf0168d280d2 (diff) |
Enhance GVN to do more precise alias queries for non-local memory
references. For example, this allows gvn to eliminate the load in
this example:
void foo(int n, int* p, int *q) {
p[0] = 0;
p[1] = 1;
if (n) {
*q = p[0];
}
}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InstructionSimplify.cpp')
0 files changed, 0 insertions, 0 deletions