diff options
author | Hideto Ueno <uenoku.tokotoko@gmail.com> | 2019-09-07 07:03:05 +0000 |
---|---|---|
committer | Hideto Ueno <uenoku.tokotoko@gmail.com> | 2019-09-07 07:03:05 +0000 |
commit | f2b9dc4758e6265c55ad578a56e9a1b27c86e797 (patch) | |
tree | 35944d819d6d96920d733c45a271c6f707870060 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 7faffd544b16f851a632d6b8f93e3c8485ff34bb (diff) | |
download | llvm-f2b9dc4758e6265c55ad578a56e9a1b27c86e797.zip llvm-f2b9dc4758e6265c55ad578a56e9a1b27c86e797.tar.gz llvm-f2b9dc4758e6265c55ad578a56e9a1b27c86e797.tar.bz2 |
[Attributor] ValueSimplify Abstract Attribute
Summary:
This patch introduces initial `AAValueSimplify` which simplifies a value in a context.
example
- (for function returned) If all the return values are the same and constant, then we can replace callsite returned with the constant.
- If an internal function takes the same value(constant) as an argument in the callsite, then we can replace the argument with that constant.
Reviewers: jdoerfert, sstefan1
Reviewed By: jdoerfert
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66967
llvm-svn: 371291
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions