aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorRoman Tereshin <rtereshin@apple.com>2018-07-19 19:42:43 +0000
committerRoman Tereshin <rtereshin@apple.com>2018-07-19 19:42:43 +0000
commitb49b2a601fc3c581aed1037389463a2ce63ece4d (patch)
tree53c863c0e6b773068cf288d71d216e561628d3f6 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent0c122d5a41cd038b8e29a0d8d671257938da1633 (diff)
downloadllvm-b49b2a601fc3c581aed1037389463a2ce63ece4d.zip
llvm-b49b2a601fc3c581aed1037389463a2ce63ece4d.tar.gz
llvm-b49b2a601fc3c581aed1037389463a2ce63ece4d.tar.bz2
[LSV] Refactoring + supporting bitcasts to a type of different size
This is mostly a preparation work for adding a limited support for select instructions. It proved to be difficult to do due to size and irregularity of Vectorizer::isConsecutiveAccess, this is fixed here I believe. It also turned out that these changes make it simpler to finish one of the TODOs and fix a number of other small issues, namely: 1. Looking through bitcasts to a type of a different size (requires careful tracking of the original load/store size and some math converting sizes in bytes to expected differences in indices of GEPs). 2. Reusing partial analysis of pointers done by first attempt in proving them consecutive instead of starting from scratch. This added limited support for nested GEPs co-existing with difficult sext/zext instructions. This also required a careful handling of negative differences between constant parts of offsets. 3. Handing a case where the first pointer index is not an add, but something else (a function parameter for instance). I observe an increased number of successful vectorizations on a large set of shader programs. Only few shaders are affected, but those that are affected sport >5% less loads and stores than before the patch. Reviewed By: rampitec Differential-Revision: https://reviews.llvm.org/D49342 llvm-svn: 337489
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions