[PATCH] D147025: [InstCombine] Teach alloca replacement to handle `addrspacecast`
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 3 08:32:24 PDT 2023
hliao updated this revision to Diff 510511.
hliao added a comment.
- Update TTI hook isValidAddrSpaceCast to be consistent with LLVM IR verifier
- Check the equal case in instcombine
- Add other valid cases in AMDGPU
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147025/new/
https://reviews.llvm.org/D147025
Files:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/AMDGPU/memcpy-from-constant.ll
llvm/test/Transforms/InstCombine/ptr-replace-alloca.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147025.510511.patch
Type: text/x-patch
Size: 13928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230403/c847cb2f/attachment-0001.bin>
More information about the llvm-commits
mailing list