Fix change in behaviour accidentally introduced in r201754.
authorNick Lewycky <nicholas@mxc.ca>
Thu, 20 Feb 2014 06:35:31 +0000 (06:35 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 20 Feb 2014 06:35:31 +0000 (06:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201758 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ScheduleDAGInstrs.cpp

index 376b6f2208314ac115de6a656cd43019e7c143aa..88cc313e76cf11ce50ac11296269f34041c2373d 100644 (file)
@@ -152,8 +152,10 @@ static void getUnderlyingObjectsForInstr(const MachineInstr *MI,
     // 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;
   }