Jingyue Wu
f6eb7e3175
Canonicalize addrspacecast ConstExpr between different pointer types
...
As a follow-up to r210375 which canonicalizes addrspacecast
instructions, this patch canonicalizes addrspacecast constant
expressions.
Given clang uses ConstantExpr::getAddrSpaceCast to emit addrspacecast
cosntant expressions, this patch is also a step towards having the
frontend emit canonicalized addrspacecasts.
Piggyback a minor refactor in InstCombineCasts.cpp
Update three affected tests in addrspacecast-alias.ll,
access-non-generic.ll and constant-fold-gep.ll and added one new test in
constant-fold-address-space-pointer.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211004 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-15 21:40:57 +00:00
..
2014-06-15 21:40:57 +00:00
2013-07-01 12:59:04 +00:00
2014-04-09 15:39:11 +00:00
2014-04-03 21:18:25 +00:00
2014-01-28 18:35:29 +00:00
2013-03-30 14:29:30 +00:00
2013-03-30 14:29:30 +00:00
2014-03-13 23:18:37 +00:00
2014-03-24 16:52:30 +00:00
2013-11-15 12:30:04 +00:00
2013-03-30 14:29:30 +00:00
2013-06-28 17:58:10 +00:00
2013-09-19 13:14:44 +00:00
2013-03-30 14:29:30 +00:00
2013-06-28 17:58:10 +00:00
2013-06-28 17:58:07 +00:00
2013-07-13 20:38:47 +00:00
2013-06-28 17:58:07 +00:00
2014-01-21 14:40:05 +00:00
2013-07-22 12:18:04 +00:00
2013-08-06 14:13:27 +00:00
2013-06-21 18:51:49 +00:00
2012-11-16 21:03:51 +00:00
2013-06-21 18:51:49 +00:00
2013-08-06 14:13:34 +00:00
2013-06-21 18:51:49 +00:00
2013-07-13 20:38:47 +00:00
2013-10-11 12:39:36 +00:00
2013-08-24 01:17:23 +00:00
2013-02-11 18:56:35 +00:00
2013-05-31 12:14:49 +00:00
2013-05-31 12:14:49 +00:00
2013-06-28 17:58:10 +00:00
2013-06-28 17:58:10 +00:00
2013-12-05 12:58:00 +00:00
2013-07-01 12:58:48 +00:00
2013-07-13 20:38:47 +00:00
2014-06-09 22:42:55 +00:00
2013-06-21 18:51:49 +00:00
2014-04-21 17:23:12 +00:00
2013-07-01 13:00:14 +00:00
2014-03-18 23:51:07 +00:00
2014-06-06 01:20:28 +00:00
2013-06-28 17:58:04 +00:00
2013-06-10 13:29:47 +00:00
2013-10-11 12:39:39 +00:00
2013-06-21 18:51:49 +00:00
2013-07-13 20:38:47 +00:00
2013-03-20 00:10:32 +00:00
2013-03-20 00:10:32 +00:00
2013-07-13 20:38:47 +00:00
2013-07-01 12:58:58 +00:00
2013-06-28 17:57:59 +00:00
2013-06-28 17:57:59 +00:00
2014-04-09 15:39:15 +00:00
2014-04-09 15:39:15 +00:00
2014-03-31 15:56:26 +00:00
2014-04-09 15:39:15 +00:00
2013-03-30 14:29:30 +00:00
2013-11-11 19:28:16 +00:00
2014-01-12 14:09:17 +00:00
2013-06-28 17:57:55 +00:00
2012-11-29 14:26:24 +00:00
2013-03-20 00:10:32 +00:00
2012-11-29 14:26:28 +00:00
2013-07-26 13:28:29 +00:00