[llvm] r201758 - Fix change in behaviour accidentally introduced in r201754.

Nick Lewycky nicholas at mxc.ca
Wed Feb 19 22:35:31 PST 2014


Author: nicholas
Date: Thu Feb 20 00:35:31 2014
New Revision: 201758

URL: http://llvm.org/viewvc/llvm-project?rev=201758&view=rev
Log:
Fix change in behaviour accidentally introduced in r201754.

Modified:
    llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp

Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=201758&r1=201757&r2=201758&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Thu Feb 20 00:35:31 2014
@@ -152,8 +152,10 @@ static void getUnderlyingObjectsForInstr
     // For now, ignore PseudoSourceValues which may alias LLVM IR values
     // because the code that uses this function has no way to cope with
     // such aliases.
-    if (!PSV->isAliased(MFI))
-      Objects.push_back(UnderlyingObjectsVector::value_type(V, false));
+    if (!PSV->isAliased(MFI)) {
+      bool MayAlias = PSV->mayAlias(MFI);
+      Objects.push_back(UnderlyingObjectsVector::value_type(V, MayAlias));
+    }
     return;
   }
 





More information about the llvm-commits mailing list