diff options
author | Dan Gohman <djg@cray.com> | 2007-07-26 16:14:06 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-07-26 16:14:06 +0000 |
commit | 45ee6d6dc54904f50e242cf9e32bee92f15a8f46 (patch) | |
tree | c79c7c900bdaea0a806102f9548ce28453883467 /lib | |
parent | ba6ec63c3703cdfd15cceaf2bd168260c77f9062 (diff) | |
download | external_llvm-45ee6d6dc54904f50e242cf9e32bee92f15a8f46.zip external_llvm-45ee6d6dc54904f50e242cf9e32bee92f15a8f46.tar.gz external_llvm-45ee6d6dc54904f50e242cf9e32bee92f15a8f46.tar.bz2 |
Fix the alias analysis query in DAGCombiner to not add in two
offsets. The SrcValueOffset values are the real offsets from the
SrcValue base pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 22c6e6b..b38b479 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -4599,8 +4599,8 @@ bool DAGCombiner::isAlias(SDOperand Ptr1, int64_t Size1, if (CombinerGlobalAA) { // Use alias analysis information. - int Overlap1 = Size1 + SrcValueOffset1 + Offset1; - int Overlap2 = Size2 + SrcValueOffset2 + Offset2; + int Overlap1 = Size1 + SrcValueOffset1; + int Overlap2 = Size2 + SrcValueOffset2; AliasAnalysis::AliasResult AAResult = AA.alias(SrcValue1, Overlap1, SrcValue2, Overlap2); if (AAResult == AliasAnalysis::NoAlias) |