[InstCombine] Handle PHI nodes in isOnlyCopiedFromConstantMemory()
As long as the memcpy occurs on a phi input (rather than the phi output), we can look through phi nodes in isOnlyCopiedFromConstantMemory(). This is split out of D136201, to only handle the case where the address spaces are the same, and no pointer rewrite is necessary.
Loading
Please sign in to comment