[llvm-dev] SROA and volatile memcpy/memset
Krzysztof Parzyszek via llvm-dev
llvm-dev at lists.llvm.org
Tue Nov 10 11:35:19 PST 2015
On 11/10/2015 1:29 PM, Joerg Sonnenberger via llvm-dev wrote:
>
> But a copy and overwrite would violate the volatile rules?
The copy and overwrite were both in the original code. SROA tries to
optimize the overwrite away, but in doing so, it breaks up the memcpy
into several instructions. Now, because they are all volatile, we can't
do much to optimize them.
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev
mailing list