[llvm-branch-commits] [llvm-branch] r81976 - in /llvm/branches/release_26: lib/Transforms/Scalar/MemCpyOptimizer.cpp test/Transforms/MemCpyOpt/align.ll
Tanya Lattner
tonic at nondot.org
Tue Sep 15 18:10:57 PDT 2009
Author: tbrethou
Date: Tue Sep 15 20:10:57 2009
New Revision: 81976
URL: http://llvm.org/viewvc/llvm-project?rev=81976&view=rev
Log:
Merge 81810 from mainline.
When extending a memset range past the front, set the alignment of the
memset region to the alignment of the new start address.
Added:
llvm/branches/release_26/test/Transforms/MemCpyOpt/align.ll
- copied unchanged from r81810, llvm/trunk/test/Transforms/MemCpyOpt/align.ll
Modified:
llvm/branches/release_26/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Modified: llvm/branches/release_26/lib/Transforms/Scalar/MemCpyOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_26/lib/Transforms/Scalar/MemCpyOptimizer.cpp?rev=81976&r1=81975&r2=81976&view=diff
==============================================================================
--- llvm/branches/release_26/lib/Transforms/Scalar/MemCpyOptimizer.cpp (original)
+++ llvm/branches/release_26/lib/Transforms/Scalar/MemCpyOptimizer.cpp Tue Sep 15 20:10:57 2009
@@ -271,6 +271,7 @@
if (Start < I->Start) {
I->Start = Start;
I->StartPtr = SI->getPointerOperand();
+ I->Alignment = SI->getAlignment();
}
// Now we know that Start <= I->End and Start >= I->Start (so the startpoint
More information about the llvm-branch-commits
mailing list