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 | f96e4bd2a3b11928af75fb7472288930d16fec0b (patch) | |
tree | b8223b2b01587cbfe66bf9beed761e536d29fbca /lib/CodeGen/MachineLICM.cpp | |
parent | 8b95c3ebfbd492c2ac863df93e40c11fc2e914fd (diff) |
Make CodeGen TBAA-aware.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineLICM.cpp')
-rw-r--r-- | lib/CodeGen/MachineLICM.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index 1f0412498b..8d0e135886 100644 --- a/lib/CodeGen/MachineLICM.cpp +++ b/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())); } } |