[llvm] [FunctionAttrs] Improve handling of alias-preserving intrinsic calls (PR #68453)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 03:38:15 PDT 2023
================
@@ -654,7 +654,15 @@ determinePointerAccessAttrs(Argument *A,
// must be a data operand (e.g. argument or operand bundle)
const unsigned UseIndex = CB.getDataOperandNo(U);
- if (!CB.doesNotCapture(UseIndex)) {
+ // Some intrinsics (for instance ptrmask) do not capture their results,
+ // but return results thas alias their pointer argument, and thus should
----------------
nikic wrote:
```suggestion
// but return results that alias their pointer argument, and thus should
```
https://github.com/llvm/llvm-project/pull/68453
More information about the llvm-commits
mailing list