Rather than checking for loop nest preheaders upfront in IVUsers, move this requirement into isSafeToExpand() from SCEVExpander, which seems like logically the right place for this check.
This is a followup to https://reviews.llvm.org/D111493#3055286.
clang-format: please reformat the code
-bool IVUsers::AddUsersIfInteresting(Instruction *I) { - return AddUsersImpl(I); -} +bool IVUsers::AddUsersIfInteresting(Instruction *I) { return AddUsersImpl(I); }