diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-19 22:54:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-19 22:54:46 +0000 |
commit | 3da848bbda62b25c12335998aaa44ab361f0bf15 (patch) | |
tree | dc1f3f7581fede379da986ef29041c892f3b545b /lib/Transforms/Scalar/LICM.cpp | |
parent | 5ee568ac2704d7302017d42ad162d4b53d076cbc (diff) |
Reapply r116831 and r116839, converting AliasAnalysis to use
uint64_t, plus fixes for places I missed before.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LICM.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LICM.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 666f402e3c..7e1021725c 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -190,7 +190,7 @@ namespace { /// pointerInvalidatedByLoop - Return true if the body of this loop may /// store into the memory location pointed to by V. /// - bool pointerInvalidatedByLoop(Value *V, unsigned Size, + bool pointerInvalidatedByLoop(Value *V, uint64_t Size, const MDNode *TBAAInfo) { // Check to see if any of the basic blocks in CurLoop invalidate *V. return CurAST->getAliasSetForPointer(V, Size, TBAAInfo).isMod(); @@ -402,7 +402,7 @@ bool LICM::canSinkOrHoistInst(Instruction &I) { return true; // Don't hoist loads which have may-aliased stores in loop. - unsigned Size = 0; + uint64_t Size = 0; if (LI->getType()->isSized()) Size = AA->getTypeStoreSize(LI->getType()); return !pointerInvalidatedByLoop(LI->getOperand(0), Size, |