summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-02-20 06:35:31 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-02-20 06:35:31 +0000
commitc4a9f8a019fd45b3f34d23e93c09d8cbf86466d3 (patch)
tree55b5a4009ea42fcb8c043c92725db51c85960df8 /llvm/lib
parentc96570172aad3f44849b4c67e1f065d1a2c52483 (diff)
downloadbcm5719-llvm-c4a9f8a019fd45b3f34d23e93c09d8cbf86466d3.tar.gz
bcm5719-llvm-c4a9f8a019fd45b3f34d23e93c09d8cbf86466d3.zip
Fix change in behaviour accidentally introduced in r201754.
llvm-svn: 201758
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/ScheduleDAGInstrs.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index 376b6f22083..88cc313e76c 100644
--- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -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;
}
OpenPOWER on IntegriCloud