diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-20 00:31:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-20 00:31:05 +0000 |
commit | a94cc6dfe8bf0c561677b17cf5f6ab0dc3382300 (patch) | |
tree | 47631828df15fe4dc5911c70d276e602bd801b64 /llvm/lib/CodeGen/MachineLICM.cpp | |
parent | 67c56217425e4207da3f2f889ed9a51026b8d222 (diff) | |
download | bcm5719-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.cpp | 4 |
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())); } } |