[PATCH] D67286: [Attributor] Implement "noalias" callsite argument deduction
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 7 16:54:27 PDT 2019
jdoerfert added a comment.
Except the nocapture changes this looks good to me. Can we make sure these are needed before we commit this?
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:1732
+ // FIXME: This is conservative though, it is better to look at CFG and
+ // check only uses possibly executed before this callsite.
+
----------------
AANoCapture will get a "isCapturedBefore" functionality at some point to solve this.
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:1736
+ if (!NoCaptureAA.isAssumedNoCapture())
+ return indicatePessimisticFixpoint();
+
----------------
make it `isAssumedNoCaptureMaybeReturned`.
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:2644
+ : "no-capture-maybe-returned"));
}
----------------
I do not understand these changes. Why do they help? Can we extract them into a different commit?
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:2914
+ indicatePessimisticFixpoint();
+ }
+
----------------
Again, why is this needed?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67286/new/
https://reviews.llvm.org/D67286
More information about the llvm-commits
mailing list