[PATCH] Cleanup handling of constant function casts

Matt Arsenault Matthew.Arsenault at amd.com
Fri Sep 13 18:02:59 PDT 2013


Some of this code is no longer necessary since int<->ptr casts are no longer occur as of r187444.

This also fixes handling vectors of pointers, and adds a bunch of new testcases for vectors and address spaces. Only the testcases for vectors of pointers are really testing anything new. Casts between different address spaces were already rejected by isBitCastable, but these cases weren't tested before.

http://llvm-reviews.chandlerc.com/D1684

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/Transforms/InstCombine/call.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1684.1.patch
Type: text/x-patch
Size: 7435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130913/280c6923/attachment.bin>


More information about the llvm-commits mailing list