The patch helps to avoid infinite loop while BitCast instruction combining for the case in D14596.
A -> B cast PHI B -> A cast
While combining (iterating through worklist) LLVM compiler creates one new PHI and one new BitCast for load and store instructions.
InstCombine builder implicitly add the instructions to worklist. This potentially creates infinite loop.
Could a problem arise if this phi was used by a phi?