IslNodeBuilder: Invariant load hoisting of elements with differing sizes
authorTobias Grosser <tobias@grosser.es>
Sat, 6 Feb 2016 21:23:39 +0000 (21:23 +0000)
committerTobias Grosser <tobias@grosser.es>
Sat, 6 Feb 2016 21:23:39 +0000 (21:23 +0000)
commit107cd5f5f63602796cd825858bf8dfcdf53fdce2
tree0c0edd06c7c558881952a03274181966ff6810fe
parent672808a853399b83cd308bbd73930b90a10db0de
IslNodeBuilder: Invariant load hoisting of elements with differing sizes

Always use access-instruction pointer type to load the invariant values.
Otherwise mismatches between ScopArrayInfo element type and memory access
element type will result in invalid casts. These type mismatches are after
r259784 a lot more common and also arise with types of different size, which
have not been handled before.

Interestingly, this change actually simplifies the code, as we now have only
one code path that is always taken, rather then a standard code path for the
common case and a "fixup" code path that replaces the standard code path in
case of mismatching types.

llvm-svn: 260009
polly/lib/CodeGen/IslNodeBuilder.cpp
polly/test/Isl/CodeGen/invariant_load_different_sized_types.ll [new file with mode: 0644]
polly/test/Isl/CodeGen/multiple-types-invariant-load.ll
polly/test/ScopInfo/invariant_load_access_classes_different_base_type.ll
polly/test/ScopInfo/invariant_load_access_classes_different_base_type_escaping.ll
polly/test/ScopInfo/invariant_load_access_classes_different_base_type_same_pointer.ll
polly/test/ScopInfo/invariant_load_access_classes_different_base_type_same_pointer_escaping.ll