[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.
Loading
Please sign in to comment