[Clang][OpenMP] Adds flatten float tripcounts with avoiding `Sema` range checks for float under an int cast (#233521)
Re-lands #229458 and adds the Sema fix that caused its revert (#233657).
`flatten` with a float bound builds an int trip count. That path hit an
assert in `GetValueRange` when a later check looked through an implicit
float->int cast.
One PR, because:
- the Sema-only follow-up needs the float->int flatten change for its
test to pass after the revert.
- #229458 alone would hit the same assert again.
Changes in-short:
- re-landing change
- `GetValueRange` skips non-integer values
GitOrigin-RevId: 0f38414f65cbc04ef25740bcb5cedf75c2fb860e
1 file changed