diff options
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/DeadStoreElimination.cpp | 6 | ||||
-rw-r--r-- | lib/Transforms/Scalar/MemCpyOptimizer.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp index cba844067c..26cb3a6a29 100644 --- a/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -79,7 +79,7 @@ namespace { AU.addPreserved<MemoryDependenceAnalysis>(); } - uint64_t getPointerSize(Value *V) const; + unsigned getPointerSize(Value *V) const; }; } @@ -373,7 +373,7 @@ bool DSE::handleEndBlock(BasicBlock &BB) { } Value *killPointer = 0; - uint64_t killPointerSize = AliasAnalysis::UnknownSize; + unsigned killPointerSize = AliasAnalysis::UnknownSize; // If we encounter a use of the pointer, it is no longer considered dead if (LoadInst *L = dyn_cast<LoadInst>(BBI)) { @@ -565,7 +565,7 @@ void DSE::DeleteDeadInstruction(Instruction *I, } while (!NowDeadInsts.empty()); } -uint64_t DSE::getPointerSize(Value *V) const { +unsigned DSE::getPointerSize(Value *V) const { if (TD) { if (AllocaInst *A = dyn_cast<AllocaInst>(V)) { // Get size information for the alloca diff --git a/lib/Transforms/Scalar/MemCpyOptimizer.cpp b/lib/Transforms/Scalar/MemCpyOptimizer.cpp index f4876eac43..d4a9171e85 100644 --- a/lib/Transforms/Scalar/MemCpyOptimizer.cpp +++ b/lib/Transforms/Scalar/MemCpyOptimizer.cpp @@ -772,7 +772,7 @@ bool MemCpyOpt::processMemMove(MemMoveInst *M) { // If the memmove is a constant size, use it for the alias query, this allows // us to optimize things like: memmove(P, P+64, 64); - uint64_t MemMoveSize = AliasAnalysis::UnknownSize; + unsigned MemMoveSize = AliasAnalysis::UnknownSize; if (ConstantInt *Len = dyn_cast<ConstantInt>(M->getLength())) MemMoveSize = Len->getZExtValue(); |