llvm-6502/lib
Chandler Carruth f28c057c42 [SROA] Use NewOffsetBegin in the unsplit case for memset merely for
consistency with memcpy rewriting, and fix a latent bug in the alignment
management for memset.

The alignment issue is that getAdjustedAllocaPtr is computing the
*relative* offset into the new alloca, but the alignment isn't being set
to the relative offset, it was using the the absolute offset which is
into the old alloca.

I don't think its possible to write a test case that actually reaches
this code where the resulting alignment would be observably different,
but the intent was clearly to use the relative offset within the new
alloca.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202229 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-26 04:45:24 +00:00
..
Analysis Constify the Optnone checks in IR passes. 2014-02-26 01:23:26 +00:00
AsmParser
Bitcode Store a DataLayout in Module. 2014-02-25 20:01:08 +00:00
CodeGen 80-col. 2014-02-26 02:53:18 +00:00
DebugInfo
ExecutionEngine Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
IR Remove spurious emacs major mode marker, these should only go on .h files. 2014-02-26 03:10:45 +00:00
IRReader
LineEditor
Linker Store a DataLayout in Module. 2014-02-25 20:01:08 +00:00
LTO Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
MC
Object Simplify base64 routine a bit. 2014-02-25 23:49:11 +00:00
Option
Support Use StringRef in raw_fd_ostream constructor 2014-02-26 03:21:00 +00:00
TableGen
Target Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
Transforms [SROA] Use NewOffsetBegin in the unsplit case for memset merely for 2014-02-26 04:45:24 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile