commit | 66a342c211a22d9214300986cc2c09957affcfab | [log] [tgz] |
---|---|---|
author | Artur Pilipenko <apilipenko@azulsystems.com> | Thu Feb 09 12:06:01 2017 +0000 |
committer | Artur Pilipenko <apilipenko@azulsystems.com> | Thu Feb 09 12:06:01 2017 +0000 |
tree | dee24f02a5a06e6d4c36969c11b83938115fc5b1 | |
parent | 85a8f6df5abe03373d1f17e6f0f5cb809a8cb750 [diff] |
[DAGCombiner] Support non-zero offset in load combine Enable folding patterns which load the value from non-zero offset: i8 *a = ... i32 val = a[4] | (a[5] << 8) | (a[6] << 16) | (a[7] << 24) => i32 val = *((i32*)(a+4)) Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D29394 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294582 91177308-0d34-0410-b5e6-96231b3b80d8