[all-commits] [llvm/llvm-project] 4125af: [MemCpyOpt] Fix handling of readnone byval arguments
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Feb 22 09:48:58 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4125afc35723b490556f7a38f7835f0914f70292
https://github.com/llvm/llvm-project/commit/4125afc35723b490556f7a38f7835f0914f70292
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-02-22 (Mon, 22 Feb 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
A llvm/test/Transforms/MemCpyOpt/byval-readnone.ll
Log Message:
-----------
[MemCpyOpt] Fix handling of readnone byval arguments
If the call is readnone, then there may not be any MemoryAccess
associated with the call. Bail out in that case.
This fixes the issue reported at
https://reviews.llvm.org/D94376#2578312.
More information about the All-commits
mailing list