[ICP] Remove incompatible attributes at indirect-call promoted callsites.
authorXin Tong <trent.xin.tong@gmail.com>
Mon, 26 Nov 2018 22:03:52 +0000 (22:03 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Mon, 26 Nov 2018 22:03:52 +0000 (22:03 +0000)
commit04d49779a126badff92fe59457d744085cde125b
treef1513c646d5686bae87c9f86003e8f92c9c46039
parent790af9180354a4d4ce3c088b4f4c2a8e626e527c
[ICP] Remove incompatible attributes at indirect-call promoted callsites.

Summary:
Removing ncompatible attributes at indirect-call promoted callsites, not removing it results in
at least a IR verification error.

Reviewers: davidxl, xur, mssimpso

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D54913

llvm-svn: 347605
llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
llvm/test/Transforms/Util/call-promotion-utils-ptrcast-attribute.ll [new file with mode: 0644]