summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineLICM.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-20 00:31:05 +0000
committerDan Gohman <gohman@apple.com>2010-10-20 00:31:05 +0000
commita94cc6dfe8bf0c561677b17cf5f6ab0dc3382300 (patch)
tree47631828df15fe4dc5911c70d276e602bd801b64 /llvm/lib/CodeGen/MachineLICM.cpp
parent67c56217425e4207da3f2f889ed9a51026b8d222 (diff)
downloadbcm5719-llvm-a94cc6dfe8bf0c561677b17cf5f6ab0dc3382300.tar.gz
bcm5719-llvm-a94cc6dfe8bf0c561677b17cf5f6ab0dc3382300.zip
Make CodeGen TBAA-aware.
llvm-svn: 116890
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineLICM.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp
index 1f0412498b6..8d0e1358863 100644
--- a/llvm/lib/CodeGen/MachineLICM.cpp
+++ b/llvm/lib/CodeGen/MachineLICM.cpp
@@ -777,7 +777,9 @@ bool MachineLICM::isLoadFromConstantMemory(MachineInstr *MI) {
MachineFunction &MF = *MI->getParent()->getParent();
return PSV->isConstant(MF.getFrameInfo());
} else {
- return AA->pointsToConstantMemory(MMO->getValue());
+ return AA->pointsToConstantMemory(AliasAnalysis::Location(MMO->getValue(),
+ MMO->getSize(),
+ MMO->getTBAAInfo()));
}
}
OpenPOWER on IntegriCloud