[PATCH] D66967: [Attributor] ValueSimplify Abstract Attribute
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 12:12:44 PDT 2019
jdoerfert added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:2517
+ if (!Stripped && this == &AA) {
+ // TODO: Look the instruction and check recursively.
+ indicatePessimisticFixpoint();
----------------
uenoku wrote:
> > GenericValueTraversal time ;)
> About genericValueTraversal, I couldn't come up with generalized way to handle simplification for each instruction. ex)
> ```
> %call = tail call i32 %fun() ; -> simplified to 1
> %tmp = add i32 %call, 1 ; -> this should be simplified to 2
> %tmp2 = mul i32 %tmp, %tmp ;-> this should be simplified to 4
> ```
> Do you have any idea?
So, you want to reuse the logic in `llvm/lib/Analysis/InstructionSimplify.cpp` with the assumptions but we can do that later.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66967/new/
https://reviews.llvm.org/D66967
More information about the llvm-commits
mailing list