[all-commits] [llvm/llvm-project] d49b84: [SROA] Use copyMetadataForLoad() helper
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Jan 20 06:24:26 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d49b842ea2b466ead10a140037c90901438ba9d3
https://github.com/llvm/llvm-project/commit/d49b842ea2b466ead10a140037c90901438ba9d3
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-01-20 (Fri, 20 Jan 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/SROA.cpp
M llvm/test/Transforms/SROA/preserve-metadata.ll
Log Message:
-----------
[SROA] Use copyMetadataForLoad() helper
Instead of copying just nonnull metadata, use the generic helper
to copy metadata to the new load. This helper is specifically
designed for the case where the load type may change, so it's
safe to use in this context.
More information about the All-commits
mailing list