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-05-29 17:00:27 +00:00
2015-04-13 17:47:15 +00:00
2015-04-28 17:18:30 +00:00
2015-02-27 21:17:42 +00:00
2014-12-15 19:07:53 +00:00
2014-07-17 18:10:09 +00:00
2014-07-16 16:26:58 +00:00
2014-07-21 22:54:44 +00:00
2015-02-27 21:17:42 +00:00
2015-01-26 19:52:20 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2014-12-15 19:07:53 +00:00
2014-07-16 16:26:58 +00:00
2014-07-16 16:26:58 +00:00
2014-07-16 16:26:58 +00:00
2015-01-14 15:36:28 +00:00
2015-01-14 15:36:28 +00:00
2015-02-27 21:17:42 +00:00
2014-07-17 18:10:09 +00:00
2014-07-17 18:10:09 +00:00
2015-03-12 01:50:30 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2014-12-15 19:07:53 +00:00
2015-02-27 21:17:42 +00:00
2014-07-17 18:10:09 +00:00
2014-07-16 16:26:58 +00:00
2014-07-16 16:26:58 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2014-08-29 15:30:20 +00:00
2014-08-29 15:30:20 +00:00
2015-02-27 19:29:02 +00:00
2015-02-27 21:17:42 +00:00
2014-07-16 16:26:58 +00:00
2015-02-27 21:17:42 +00:00
2014-12-15 19:07:53 +00:00
2015-02-27 21:17:42 +00:00
2014-07-23 20:23:49 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2014-12-17 17:59:04 +00:00
2015-03-19 17:05:35 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 19:29:02 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2015-03-30 19:30:55 +00:00
2015-03-30 19:30:55 +00:00
2015-03-30 19:30:55 +00:00
2015-03-30 19:30:55 +00:00
2015-03-30 19:30:55 +00:00
2015-03-30 19:30:55 +00:00
2015-03-30 19:30:55 +00:00
2014-07-16 16:26:58 +00:00
2014-07-16 16:26:58 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-04-16 23:24:18 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-07-17 16:58:56 +00:00
2015-02-27 21:17:42 +00:00
2014-12-17 17:59:04 +00:00
2015-02-27 21:17:42 +00:00
2014-10-25 03:46:16 +00:00
2015-02-27 21:17:42 +00:00
2015-02-27 21:17:42 +00:00
2014-12-01 21:16:17 +00:00