diff options
author | Florian Hahn <florian.hahn@arm.com> | 2018-01-07 11:22:25 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2018-01-07 11:22:25 +0000 |
commit | 55be37e7d4f5af14b7cc5108a5181109b73b0a9a (patch) | |
tree | 3fd574641544a58a4f0f19a0034c3175e077b30a /llvm/test/Transforms/InferFunctionAttrs | |
parent | a674416d9072fbaa84b9ff69aa6ac714ee3793f9 (diff) | |
download | bcm5719-llvm-55be37e7d4f5af14b7cc5108a5181109b73b0a9a.tar.gz bcm5719-llvm-55be37e7d4f5af14b7cc5108a5181109b73b0a9a.zip |
[CodeExtractor] Use subset of function attributes for extracted function.
In addition to target-dependent attributes, we can also preserve a
white-listed subset of target independent function attributes. The white-list
excludes problematic attributes, most prominently:
* attributes related to memory accesses, as alloca instructions
could be moved in/out of the extracted block
* control-flow dependent attributes, like no_return or thunk, as the
relerelevant instructions might or might not get extracted.
Thanks @efriedma and @aemerson for providing a set of attributes that cannot be
propagated.
Reviewers: efriedma, davidxl, davide, silvas
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D41334
llvm-svn: 321961
Diffstat (limited to 'llvm/test/Transforms/InferFunctionAttrs')
0 files changed, 0 insertions, 0 deletions