[Intrinsics] Make MemCpyInlineInst a MemCpyInst
authorJon Roelofs <jonathan_roelofs@apple.com>
Wed, 30 Jun 2021 23:49:48 +0000 (16:49 -0700)
committerJon Roelofs <jonathan_roelofs@apple.com>
Fri, 2 Jul 2021 17:25:24 +0000 (10:25 -0700)
commit37b6e03c18e252520da14e7517053f75d23262a0
tree04f0444f245fba711a43d6b59a0278d1fff59e7b
parent2ff5a56e1ab2a95c36d3c5d2bef7c585125718ae
[Intrinsics] Make MemCpyInlineInst a MemCpyInst

This opens up more optimization opportunities in passes that already handle MemCpyInst's.

Differential revision: https://reviews.llvm.org/D105247
llvm/include/llvm/IR/IRBuilder.h
llvm/include/llvm/IR/InstVisitor.h
llvm/include/llvm/IR/IntrinsicInst.h
llvm/lib/IR/IRBuilder.cpp
llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
llvm/test/Transforms/InferAddressSpaces/AMDGPU/mem-intrinsics.ll
llvm/test/Transforms/LoopIdiom/memcpy-inline-intrinsic.ll [new file with mode: 0644]
llvm/test/Transforms/MemCpyOpt/memcpy.ll