[PATCH] PR21403: CGSCC should not treat intrinsics as function calls

Sanjay Patel spatel at rotateright.com
Tue Nov 4 15:14:56 PST 2014


Hi nlewycky, chandlerc, hfinkel,

This patch tries to make the handling of calls to intrinsics in CGSCC consistent: they are not treated like regular function calls (because they are never lowered to function calls?).

Without this patch, we can get dangling pointer asserts from the subsequent loop that processes callsites because it already ignores intrinsics.

Please see http://llvm.org/bugs/show_bug.cgi?id=21403 for more details / discussion.

http://reviews.llvm.org/D6124

Files:
  lib/Analysis/IPA/CallGraphSCCPass.cpp
  test/Transforms/InstCombine/no_cgscc_assert.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6124.15788.patch
Type: text/x-patch
Size: 1503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141104/5a3fa080/attachment.bin>


More information about the llvm-commits mailing list