[PATCH] D66967: [Attributor] ValueSimplify Abstract Attribute
Hideto Ueno via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 11:27:28 PDT 2019
uenoku created this revision.
uenoku added reviewers: jdoerfert, sstefan1.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
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.
https://reviews.llvm.org/D66967
Files:
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/FunctionAttrs/align.ll
llvm/test/Transforms/FunctionAttrs/value-simplify.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66967.217945.patch
Type: text/x-patch
Size: 10417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190829/a52aa689/attachment.bin>
More information about the llvm-commits
mailing list