diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-19 21:06:16 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-19 21:06:16 +0000 |
commit | 1db839e73471a40309c2c10873b67c3b5b1b7a7b (patch) | |
tree | db2969bbd1f5f31724d03f0e425967891a0d0830 /lib/Transforms | |
parent | 2594746045258958673ebe42db2a27a4d05b0b73 (diff) |
Revert r116831 and r116839, which are breaking selfhost builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116858 91177308-0d34-0410-b5e6-96231b3b80d8
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(); |