[LSR] Prevent creating SCEVs of addrecs from mismatching loops
LSR can include Regs of AddRec SCEVs from different loops, which do not combine well when added in Scalar Evolution. As they should never produce constant differences so we can just guard against trying to create them. Fixes #60927
Loading
Please sign in to comment