[all-commits] [llvm/llvm-project] fc2897: Add nocapture to pointer parameters of masked stor...
Benjamin Maxwell via All-commits
all-commits at lists.llvm.org
Mon Oct 24 04:18:13 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fc28971fb9d37401777d75b9dff9bc298f28bfc3
https://github.com/llvm/llvm-project/commit/fc28971fb9d37401777d75b9dff9bc298f28bfc3
Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: 2022-10-24 (Mon, 24 Oct 2022)
Changed paths:
M llvm/include/llvm/IR/Intrinsics.td
A llvm/test/Assembler/masked-load-store-intrinsics-attributes.ll
M llvm/test/Transforms/InstCombine/load-store-masked-constant-array.ll
M mlir/test/Target/LLVMIR/llvmir-intrinsics.mlir
Log Message:
-----------
Add nocapture to pointer parameters of masked stores/loads
The lack of this attribute (particularly on the load intrinsics)
prevented InstCombine from optimizing away allocas and memcpys
for arrays that could be read directly from rodata.
This now also includes a new test to check the masked load/store
intrinsics have the expected attributes (specifically nocapture).
Differential Revision: https://reviews.llvm.org/D135656
More information about the All-commits
mailing list