llvm-6502/lib
Pawel Wodnicki 3f0b779be8 Merging r169719: into 3.2 release branch.
Fix PR14548: SROA was crashing on a mixture of i1 and i8 loads and stores.

When SROA was evaluating a mixture of i1 and i8 loads and stores, in
just a particular case, it would tickle a latent bug where we compared
bits to bytes rather than bits to bits. As a consequence of the latent
bug, we would allow integers through which were not byte-size multiples,
a situation the later rewriting code was never intended to handle.

In release builds this could trigger all manner of oddities, but the
reported issue in PR14548 was forming invalid bitcast instructions.

The only downside of this fix is that it makes it more clear that SROA
in its current form is not capable of handling mixed i1 and i8 loads and
stores. Sometimes with the previous code this would work by luck, but
usually it would crash, so I'm not terribly worried. I'll watch the LNT
numbers just to be sure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@169735 91177308-0d34-0410-b5e6-96231b3b80d8
2012-12-10 14:20:28 +00:00
..
Analysis Merging r168921: into the 3.2 release branch. 2012-11-30 03:38:58 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser Merging r168354: into 3.2 release branch 2012-11-22 06:08:33 +00:00
Bitcode Merging r168354: into 3.2 release branch 2012-11-22 06:08:33 +00:00
CodeGen Merging r168622: into 3.2 release branch. 2012-11-29 22:11:02 +00:00
DebugInfo Add a relocation visitor to lib object. This works via caching relocated 2012-11-07 23:22:07 +00:00
ExecutionEngine Merging MIPS JIT/MCJIT changeset into 3.2 release branch. 2012-12-04 20:23:05 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC Merging MIPS GOT changeset into 3.2 release branch. 2012-12-04 19:47:56 +00:00
Object Add interface for querying object files for symbol values. 2012-10-29 10:47:00 +00:00
Support Bugzilla bug 14357 2012-11-15 21:24:48 +00:00
TableGen Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
Target Merging MIPS JIT/MCJIT changeset into 3.2 release branch. 2012-12-04 20:23:05 +00:00
Transforms Merging r169719: into 3.2 release branch. 2012-12-10 14:20:28 +00:00
VMCore Merging r168354: into 3.2 release branch 2012-11-22 06:08:33 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile