summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-26 16:14:06 +0000
committerDan Gohman <gohman@apple.com>2007-07-26 16:14:06 +0000
commit30f060be8041a7b9c3d16a872a05712d4c502317 (patch)
treebe2aa3989f8b3402c6cf996251557b2dd17fa299 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent6e853bc73f3bbf3248cb8edee6ee636d60b213a0 (diff)
downloadbcm5719-llvm-30f060be8041a7b9c3d16a872a05712d4c502317.tar.gz
bcm5719-llvm-30f060be8041a7b9c3d16a872a05712d4c502317.zip
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. llvm-svn: 40534
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 22c6e6b396c..b38b479cbe8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud