-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Milestone
Description
While debugging JuliaLang/julia#57959. It got minimized to what looks to be a bug in MemCpyOpt, where it strips the noalias attribute of a memcpy
llvm-project/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Lines 1682 to 1688 in 3c7a0e6
// As this transformation can cause memory accesses that didn't previously | |
// alias to begin to alias one another, we remove !noalias metadata from any | |
// uses of either alloca. This is conservative, but more precision doesn't | |
// seem worthwhile right now. | |
for (Instruction *I : NoAliasInstrs) | |
I->setMetadata(LLVMContext::MD_noalias, nullptr); | |
combineMetadata
as used elsewhere in the pass@khei4 was the one that originally added this optimization
Metadata
Metadata
Assignees
Type
Projects
Status
Done