OSDN Git Service

[ArgPromotion] Don't drop !prof metadata on promoted calls
authorReid Kleckner <rnk@google.com>
Thu, 13 Apr 2017 18:10:30 +0000 (18:10 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 13 Apr 2017 18:10:30 +0000 (18:10 +0000)
commit0bd53cd74c0c9cad162582ff59c82286e19fc7ee
treed6a3bdf9253163bc37920cbee8b2e15cf7dc7dcd
parent881e9f317759f2a1e32a01bad39eb08cdad91dc1
[ArgPromotion] Don't drop !prof metadata on promoted calls

Noticed by inspection while doing attribute work. DAE, InstCombineCalls,
and ArgPromotion have a fair amount of duplicated code for hacking on
call sites, and you can find bugs by comparing them.

Add a test case for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300229 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/ArgumentPromotion.cpp
test/Transforms/ArgumentPromotion/profile.ll [new file with mode: 0644]