When IRCE runs on outer loop and sees a check of an AddRec of inner loop, it crashes with an assert in SCEV that the AddRec must be loop invariant. This adds a bail out if the AddRec which is checked in icmp is for another loop. Fixes https://github.com/llvm/llvm-project/issues/58912. Differential Revision: https://reviews.llvm.org/D137822