[Polly] Fix assertion in addUserAssumptions for unreachable blocks (#227311)

ScopBuilder::addUserAssumptions() crashes when an llvm.assume call
resides in a block that has no entry in InvalidDomainMap. This happens
when __builtin_unreachable() is converted to llvm.assume by earlier
passes, but Polly's buildDomainsWithBranchConstraints() skips the block
(e.g. due to an UnreachableInst terminator), leaving its
InvalidDomainMap entry uninitialized.
Skip such assumptions instead of asserting.

Fixes #226718

GitOrigin-RevId: 2ccba9abdcdb293df159015d04611ed220ac86fe
2 files changed