llvm
aa9099a4 - [JumpThreading] Clone noalias scopes in duplicateCondBranchOnPHIIntoPred (#200550)

Commit
3 days ago
[JumpThreading] Clone noalias scopes in duplicateCondBranchOnPHIIntoPred (#200550) duplicateCondBranchOnPHIIntoPred clones a block into a predecessor with its own loop. Unlike cloneInstructions (used by threadEdge), it never cloned the duplicated noalias scope declarations. The duplicated code therefore shared the original's !alias.scope/!noalias MDNodes, letting AA incorrectly treat two accesses on different paths as non-aliasing. Fix by cloning the scopes.
Author
Parents
Loading