1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/lib/Transforms
Chandler Carruth 47187cb94a Rework the rewriting of loads and stores for vector and integer allocas
to properly handle the combinations of these with split integer loads
and stores. This essentially replaces Evan's r168227 by refactoring the
code in a different way, and trynig to mirror that refactoring in both
the load and store sides of the rewriting.

Generally speaking there was some really problematic duplicated code
here that led to poorly founded assumptions and then subtle bugs. Now
much of the code actually flows through and follows a more consistent
style and logical path. There is still a tiny bit of duplication on the
store side of things, but it is much less bad.

This also changes the logic to never re-use a load or store instruction
as that was simply too error prone in practice.

I've added a few tests (one a reduction of the one in Evan's original
patch, which happened to be the same as the report in PR14349). I'm
going to look at adding a few more tests for things I found and fixed in
passing (such as the volatile tests in the vectorizable predicate).

This patch has survived bootstrap, and modulo one bugfix survived
Duncan's test suite, but let me know if anything else explodes.

llvm-svn: 168346
2012-11-20 01:12:50 +00:00
..
Hello
InstCombine Don't try to calculate the alignment of an unsigned type. Fixes PR14371! 2012-11-18 05:39:39 +00:00
Instrumentation Plug a memory leak in the GCOV profiling emitter, which never released the edge table memory. 2012-11-17 13:49:37 +00:00
IPO Clean up handling of always-inline functions in the inliner. 2012-11-19 07:04:35 +00:00
Scalar Rework the rewriting of loads and stores for vector and integer allocas 2012-11-20 01:12:50 +00:00
Utils SimplifyCFG: Don't assume non-null ScalarTargetTransformInfo. 2012-11-16 18:22:08 +00:00
Vectorize LoopVectorizer: Add initial support for pointer induction variables (for example: *dst++ = *src++). 2012-11-17 00:27:03 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile