diff options
| author | Dan Gohman <gohman@apple.com> | 2010-12-10 21:48:28 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-12-10 21:48:28 +0000 |
| commit | 39de62348fb515c2dd443717018c42642ff8097e (patch) | |
| tree | 65669f32d3342f843fc88acb0229de33d304e099 /llvm/lib/Analysis/BasicAliasAnalysis.cpp | |
| parent | de1451ef4b1bf0ded7b4aaf632a693ef488e83bf (diff) | |
| download | bcm5719-llvm-39de62348fb515c2dd443717018c42642ff8097e.tar.gz bcm5719-llvm-39de62348fb515c2dd443717018c42642ff8097e.zip | |
Revert r121520, which may have introduced miscompilations.
llvm-svn: 121573
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/BasicAliasAnalysis.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp index 17a502e1f78..3ab18fd3c0d 100644 --- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp +++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp @@ -857,17 +857,6 @@ BasicAliasAnalysis::aliasGEP(const GEPOperator *GEP1, uint64_t V1Size, if (GEP1BaseOffset == 0 && GEP1VariableIndices.empty()) return MustAlias; - // If there is a difference betwen the pointers, but the difference is - // less than the size of the associated memory object, then we know - // that the objects are partially overlapping. - if (GEP1BaseOffset != 0 && GEP1VariableIndices.empty()) { - if (GEP1BaseOffset >= 0 ? - (V2Size != UnknownSize && (uint64_t)GEP1BaseOffset < V2Size) : - (V1Size != UnknownSize && -(uint64_t)GEP1BaseOffset < V1Size && - GEP1BaseOffset != INT64_MIN)) - return PartialAlias; - } - // If we have a known constant offset, see if this offset is larger than the // access size being queried. If so, and if no variable indices can remove // pieces of this constant, then we know we have a no-alias. For example, |

