diff options
author | Jingyue Wu <jingyue@google.com> | 2014-06-15 21:40:57 +0000 |
---|---|---|
committer | Jingyue Wu <jingyue@google.com> | 2014-06-15 21:40:57 +0000 |
commit | baabe5091c63748d99bf59a1807c2879881b4af2 (patch) | |
tree | 9c0e06e35d1cd712ff02bde70a2d8a689c52bd2f /clang/lib/Sema/SemaInit.cpp | |
parent | 2a60de548aa83df8a33b8fdee02be2a6ab077337 (diff) | |
download | bcm5719-llvm-baabe5091c63748d99bf59a1807c2879881b4af2.tar.gz bcm5719-llvm-baabe5091c63748d99bf59a1807c2879881b4af2.zip |
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
llvm-svn: 211004
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
0 files changed, 0 insertions, 0 deletions