Jingyue Wu
ef056a9111
[NVPTXFavorNonGenericAddrSpaces] recursively trace into GEP and BitCast
Summary:
This patch allows NVPTXFavorNonGenericAddrSpaces to remove addrspacecast
from longer chains consisting of GEPs and BitCasts. For example, it can
now optimize
%0 = addrspacecast [10 x float] addrspace(3)* @a to [10 x float]*
%1 = gep [10 x float]* %0, i64 0, i64 %i
%2 = bitcast float* %1 to i32*
%3 = load i32* %2 ; emits ld.u32
to
%0 = gep [10 x float] addrspace(3)* @a, i64 0, i64 %i
%1 = bitcast float addrspace(3)* %0 to i32 addrspace(3)*
%3 = load i32 addrspace(3)* %1 ; emits ld.shared.f32
Test Plan: @ld_int_from_global_float in access-non-generic.ll
Reviewers: broune, eliben, jholewinski, meheff
Subscribers: jholewinski, llvm-commits
Differential Revision: http://reviews.llvm.org/D10074
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238574 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-29 17:00:27 +00:00
..
2015-03-30 22:03:16 +00:00
2015-05-15 19:13:31 +00:00
2015-03-02 13:16:28 +00:00
2015-01-14 23:01:36 +00:00
2015-02-01 00:22:15 +00:00
2015-03-30 19:30:55 +00:00
2015-03-10 19:20:52 +00:00
2015-03-10 19:20:52 +00:00
2015-05-28 11:24:24 +00:00
2015-05-15 21:58:42 +00:00
2015-02-13 10:01:29 +00:00
2015-05-29 17:00:27 +00:00
2015-05-05 17:38:16 +00:00
2015-05-05 17:38:16 +00:00
2015-04-03 21:33:42 +00:00
2015-01-14 11:23:27 +00:00
2015-02-19 00:08:27 +00:00
2015-02-19 00:08:27 +00:00
2015-04-28 14:05:47 +00:00
2015-04-28 14:05:47 +00:00
2015-04-28 14:05:47 +00:00
2015-05-21 19:20:38 +00:00
2015-05-07 21:33:59 +00:00
2015-04-10 11:24:51 +00:00
2015-03-09 15:50:58 +00:00
2015-03-10 20:07:44 +00:00
2015-04-28 17:18:30 +00:00
2015-05-21 19:20:38 +00:00
2015-05-05 17:38:16 +00:00
2015-03-11 21:41:28 +00:00
2015-03-11 21:41:28 +00:00
2015-02-19 00:08:23 +00:00
2015-04-04 18:02:01 +00:00
2015-02-19 00:08:27 +00:00
2015-02-19 00:08:27 +00:00
2015-05-28 04:56:52 +00:00
2015-04-14 22:14:34 +00:00
2015-05-21 19:20:38 +00:00
2015-04-10 05:03:50 +00:00
2015-04-10 05:03:50 +00:00
2015-03-23 16:26:23 +00:00
2015-04-28 14:05:47 +00:00
2015-03-23 19:32:43 +00:00