[InstCombine] Add Visited set to isOnlyCopiedFromConstantMemory()
I don't think this matters right now (because InstCombine cleans up unreachable code early), but this will help to make sure that we don't infinite loop once we handle phi nodes. The added test is an example where this would happen.
parent
1ad45278
Please register or sign in to comment