[PATCH] D64258: [InferFuncAttributes] extend 'dereferenceable' attribute based on loads
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 10:08:15 PDT 2019
spatel updated this revision to Diff 208999.
spatel marked 3 inline comments as done.
spatel added a comment.
Patch updated:
1. Allow stores to have the same inferences as loads. This exposed more clang test failures, so those diffs are included.
2. Don't infer anything from volatile (non-simple) memory accesses.
3. There was a bug in how we dealt isGuaranteedToTransferExecutionToSuccessor(), so added an assert and a test with a function call to verify that.
4. Added code/test for replacing DereferenceableOrNull attribute.
5. Added FIXME comment to indicate that this pass should be subsumed by Attributor.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64258/new/
https://reviews.llvm.org/D64258
Files:
clang/test/CodeGen/ms-intrinsics.c
clang/test/CodeGen/ms-x86-intrinsics.c
clang/test/CodeGen/systemz-inline-asm.c
clang/test/CodeGenOpenCL/kernels-have-spir-cc-by-default.cl
llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
llvm/test/CodeGen/AMDGPU/inline-attr.ll
llvm/test/Transforms/InferFunctionAttrs/dereferenceable.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64258.208999.patch
Type: text/x-patch
Size: 21042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190710/85e7a6fd/attachment-0001.bin>
More information about the llvm-commits
mailing list