[llvm-commits] [llvm] r40534 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Dan Gohman djg at cray.com
Thu Jul 26 09:14:06 PDT 2007


Author: djg
Date: Thu Jul 26 11:14:06 2007
New Revision: 40534

URL: http://llvm.org/viewvc/llvm-project?rev=40534&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=40534&r1=40533&r2=40534&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Jul 26 11:14:06 2007
@@ -4599,8 +4599,8 @@
 
   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)





More information about the llvm-commits mailing list