[PATCH] Canonicalize addrspacecast ConstExpr between different pointer types

Jingyue Wu jingyue at google.com
Fri Jun 13 14:02:24 PDT 2014


Thanks! I also piggybacked a similar change in InstCombine

http://reviews.llvm.org/D4138

Files:
  lib/IR/ConstantFold.cpp
  lib/IR/Constants.cpp
  lib/Transforms/InstCombine/InstCombineCasts.cpp
  test/Assembler/addrspacecast-alias.ll
  test/CodeGen/NVPTX/access-non-generic.ll
  test/Other/constant-fold-gep.ll
  test/Transforms/InstCombine/constant-fold-address-space-pointer.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4138.10405.patch
Type: text/x-patch
Size: 5661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140613/03a815c3/attachment.bin>


More information about the llvm-commits mailing list